Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 2e71ac6

Browse files
authored
Bug fix
1 parent c428cac commit 2e71ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SlackKit/Sources/Response.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Response {
3737
var json = [String : AnyObject]()
3838
json["text"] = text
3939
json["response_type"] = responseType?.rawValue
40-
json["attachments"] = attachments?.flatMap({$0.dictionary()})
40+
json["attachments"] = attachments?.map({$0.dictionary()})
4141
return json
4242
}
4343

0 commit comments

Comments
 (0)