Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1889ffeeee |
@@ -35,7 +35,9 @@ public final class SlackKit: OAuthDelegate {
|
||||
public init(withAPIToken token: String, clientOptions: ClientOptions = ClientOptions()) {
|
||||
self.clientOptions = clientOptions
|
||||
let client = Client(apiToken: token)
|
||||
self.onClientInitalization?(client)
|
||||
dispatch_async(dispatch_get_main_queue(), {
|
||||
self.onClientInitalization?(client)
|
||||
})
|
||||
clients[token] = client
|
||||
client.connect(options: self.clientOptions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user