Method GetGuildChannels
| Improve this Doc View SourceGetGuildChannels(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 |
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 |
| DiscordHttpApiException |