ENUM

ModUserErrorCode

ModUserErrorCode defines a client error that occurred while adding a moderator.

link GraphQL Schema definition

1enum ModUserErrorCode {
2
3# The requesting user does not have permission to add a moderator in this channel.
4FORBIDDEN
5
6# The target user does not exist or has a suspended account.
7TARGET_NOT_FOUND
8
9# The channel does not exist.
10CHANNEL_NOT_FOUND
11
12# The target user is banned or timed out in this channel.
13TARGET_IS_CHAT_BANNED
14
15# The target user is already a moderator.
16TARGET_ALREADY_MOD
17}