title: Modify Channel category: Channel
modifyChannel
$client->channel->modifyChannel($parameters);
Update a channels settings. Requires the 'MANAGE_CHANNELS' permission for the guild. Fires a Channel Update Gateway event. If modifying a category, individual Channel Update events will fire for each child channel that also changes. For the PATCH method, all the JSON Params are optional.
Name | Type | Required | Default |
---|---|---|---|
channel.id | snowflake | true | null |
name | string | false | null |
position | integer | false | null |
topic | string | false | null |
nsfw | bool | false | null |
bitrate | integer | false | null |
user_limit | integer | false | null |
permission_overwrites | array | false | null |
parent_id | snowflake | false | null |
Returns a channel on success, and a 400 BAD REQUEST on invalid parameters.
Can Return: