Set Channel Moderator
Gives the role of moderator
to a user in the current channel.
It requires the set-moderator
permission.
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
Body Parameters
Key | Example Value | Description |
---|---|---|
|
| The channel ID for which you want to set the moderator. |
|
| The user ID that you want to set as the moderator. |
Example Call
Example Response
Success
Error
Any of the following errors can occur on the endpoint.
Authorization: Requires an authentication token for the request to be made.
Not Allowed: This occurs when the authenticated user doesn't have the
set-moderator
permission.User is already a moderator: This occurs when the user is already a moderator in the channel.
Change Log
Version | Description |
---|---|
0.49.4 | Added |
Last updated