             return .InvalidTSOldest
         case "is_archived":
             return .IsArchived
+        case "last_member":
+            return .LastMember
+        case "last_ra_channel":
+            return .LastRAChannel
         case "message_not_found":
             return .MessageNotFound
         case "msg_too_long":
             return .MessageTooLong
         case "migration_in_progress":
             return .MigrationInProgress
+        case "missing_duration":
+            return .MissingDuration
+        case "missing_post_type":
+            return .MissingPostType
+        case "name_taken":
+            return .NameTaken
+        case "no_channel":
+            return .NoChannel
         case "no_reaction":
             return .NoReaction
         case "no_item_specified":
             return .NoItemSpecified
         case "no_text":
             return .NoText
+        case "not_archived":
+            return .NotArchived
         case "not_authed":
             return .NotAuthed
         case "not_enough_users":
             return .NotEnoughUsers
         case "not_in_channel":
             return .NotInChannel
+        case "not_in_group":
+            return .NotInGroup
         case "not_pinned":
             return .NotPinned
         case "not_starred":
             return .NotStarred
+        case "over_pagination_limit":
+            return .OverPaginationLimit
+        case "paid_only":
+            return .PaidOnly
         case "perimssion_denied":
             return .PermissionDenied
         case "posting_to_general_channel_denied":

    case FileDeleted
    case FileNotFound
    case FileNotShared
    case InvalidArrayArg
    case InvalidAuth
    case InvalidChannel
    case InvalidName
    case InvalidPresence
    case InvalidTS
    case InvalidTSLatest
    case InvalidTSOldest
    case IsArchived
    case LastRAChannel
    case MessageNotFound
    case MessageTooLong
    case MigrationInProgress
    case NoItemSpecified
    case NoReaction
    case NoText
    case NotAuthed
    case NotEnoughUsers
    case NotInChannel
    case NotPinned
    case NotStarred
    case PermissionDenied
    case PostingToGeneralChannelDenied
    case RateLimited
    case RequestTimeout
    case RestrictedAction
    case TooLong
    case TooManyEmoji
    case TooManyReactions
    case TooManyUsers
    case UnknownError
    case UserDisabled
    case UserDoesNotOwnChannel
    case UserIsRestricted
    case UserListNotSupplied
    case UserNotFound
    case UserNotVisible

        switch error {
        case "account_inactive":
            return .AccountInactive
        case "already_in_channel":
            return .AlreadyInChannel
        case "already_pinned":
            return .AlreadyPinned
        case "already_reacted":
            return .AlreadyReacted
        case "already_starred":
            return .AlreadyStarred
        case "bad_client_secret":
            return .BadClientSecret
        case "bad_redirect_uri":
            return .BadRedirectURI
        case "bad_timestamp":
            return .BadTimeStamp
        case "cant_delete_file":
            return .CantDeleteFile
        case "cant_delete_message":
            return .CantDeleteMessage
        case "cant_invite":
            return .CantInvite
        case "cant_invite_self":
            return .CantInviteSelf
        case "cant_kick_from_general":
            return .CantKickFromGeneral
        case "cant_kick_from_last_channel":
            return .CantKickFromLastChannel
        case "cant_kick_self":
            return .CantKickSelf
        case "cant_leave_general":
            return .CantLeaveGeneral
        case "cant_leave_last_channel":
            return .CantLeaveLastChannel
        case "cant_update_message":
            return .CantUpdateMessage
        case "compliance_exports_prevent_deletion":
