Discore
Show / Hide Table of Contents

Method ModifyVoiceChannel

| Improve this Doc View Source

ModifyVoiceChannel(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 options is null.

DiscordHttpApiException
| Improve this Doc View Source

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 voiceChannel or options is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX