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

Commit aa07893

Browse files
committed
File comment web api errors
1 parent 5c157ca commit aa07893

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SlackKit/Sources/SlackWebAPIErrorDispatcher.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public enum SlackError: ErrorType {
3434
case BadRedirectURI
3535
case BadTimeStamp
3636
case CantArchiveGeneral
37+
case CantDelete
3738
case CantDeleteFile
3839
case CantDeleteMessage
3940
case CantInvite
@@ -75,6 +76,7 @@ public enum SlackError: ErrorType {
7576
case MissingPostType
7677
case NameTaken
7778
case NoChannel
79+
case NoComment
7880
case NoItemSpecified
7981
case NoReaction
8082
case NoText
@@ -131,6 +133,8 @@ internal struct ErrorDispatcher {
131133
return .BadRedirectURI
132134
case "bad_timestamp":
133135
return .BadTimeStamp
136+
case "cant_delete":
137+
return .CantDelete
134138
case "cant_delete_file":
135139
return .CantDeleteFile
136140
case "cant_delete_message":
@@ -213,6 +217,8 @@ internal struct ErrorDispatcher {
213217
return .NameTaken
214218
case "no_channel":
215219
return .NoChannel
220+
case "no_comment":
221+
return .NoComment
216222
case "no_reaction":
217223
return .NoReaction
218224
case "no_item_specified":

0 commit comments

Comments
 (0)