Discore
Show / Hide Table of Contents

Method CreateGuildChannel

| Improve this Doc View Source

CreateGuildChannel(Snowflake, CreateGuildChannelOptions)

Creates a new text channel, voice channel, or channel category for a guild.

Requires ManageChannels.

Declaration
public Task<DiscordGuildChannel> CreateGuildChannel(Snowflake guildId, CreateGuildChannelOptions options)
Parameters
Type Name Description
Snowflake guildId
CreateGuildChannelOptions options
Returns
Type Description
Task<DiscordGuildChannel>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
| Improve this Doc View Source

CreateGuildChannel(DiscordGuild, CreateGuildChannelOptions)

Creates a new text channel, voice channel, or channel category for a guild.

Requires ManageChannels.

Declaration
public Task<DiscordGuildChannel> CreateGuildChannel(DiscordGuild guild, CreateGuildChannelOptions options)
Parameters
Type Name Description
DiscordGuild guild
CreateGuildChannelOptions options
Returns
Type Description
Task<DiscordGuildChannel>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX