Compare commits

..

2 Commits

Author SHA1 Message Date
Peter Zignego 7ab973a03b Include style in Action JSON dictionary 2016-08-02 23:21:16 -04:00
Peter Zignego 1889ffeeee Fix callback bug when authing via a provided token 2016-07-26 19:11:26 -04:00
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@ public struct Action {
dict["text"] = text
dict["type"] = type
dict["value"] = value
dict["style"] = style?.rawValue
dict["confirm"] = confirm?.dictionary()
return dict
}
+3 -1
View File
@@ -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)
}