Discore
Show / Hide Table of Contents

Method GetGuildChannels

| Improve this Doc View Source

GetGuildChannels(Snowflake)

Gets a list of all channels in a guild.

Declaration
public Task<IReadOnlyList<DiscordGuildChannel>> GetGuildChannels(Snowflake guildId)
Parameters
Type Name Description
Snowflake guildId
Returns
Type Description
Task<IReadOnlyList<DiscordGuildChannel>>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

GetGuildChannels(DiscordGuild)

Gets a list of all channels in a guild.

Declaration
public Task<IReadOnlyList<DiscordGuildChannel>> GetGuildChannels(DiscordGuild guild)
Parameters
Type Name Description
DiscordGuild guild
Returns
Type Description
Task<IReadOnlyList<DiscordGuildChannel>>
Exceptions
Type Condition
ArgumentNullException

Thrown if guild is null.

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