Method ModifyVoiceChannel
| Improve this Doc View SourceModifyVoiceChannel(Snowflake, GuildVoiceChannelOptions)
Updates the settings of a guild voice channel.
Requires ManageChannels.
Declaration
public Task<DiscordGuildVoiceChannel> ModifyVoiceChannel(Snowflake voiceChannelId, GuildVoiceChannelOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | voiceChannelId | The ID of the guild voice channel to modify. |
| GuildVoiceChannelOptions | options | A set of options to modify the channel with. |
Returns
| Type | Description |
|---|---|
| Task<DiscordGuildVoiceChannel> | Returns the updated guild voice channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |
ModifyVoiceChannel(DiscordGuildVoiceChannel, GuildVoiceChannelOptions)
Updates the settings of a guild voice channel.
Requires ManageChannels.
Declaration
public Task<DiscordGuildVoiceChannel> ModifyVoiceChannel(DiscordGuildVoiceChannel voiceChannel, GuildVoiceChannelOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordGuildVoiceChannel | voiceChannel | The guild voice channel to modify. |
| GuildVoiceChannelOptions | options | A set of options to modify the channel with. |
Returns
| Type | Description |
|---|---|
| Task<DiscordGuildVoiceChannel> | Returns the updated guild voice channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |