Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e71ac6876 |
@@ -37,7 +37,7 @@ public struct Response {
|
||||
var json = [String : AnyObject]()
|
||||
json["text"] = text
|
||||
json["response_type"] = responseType?.rawValue
|
||||
json["attachments"] = attachments?.flatMap({$0.dictionary()})
|
||||
json["attachments"] = attachments?.map({$0.dictionary()})
|
||||
return json
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user