Method GetChannelAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetChannelAsync(ulong, bool)
Gets a channel from this guild by its ID.
public Task<DiscordChannel> GetChannelAsync(ulong id, bool skipCache = false)
Parameters
id
ulongID of the channel to get.
skipCache
boolIf set to true this method will skip all caches and always perform a rest api call
Returns
- Task<DiscordChannel>
Requested channel.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.
- NotFoundException
Thrown when this channel does not exists
- InvalidOperationException
Thrown when the channel exists but does not belong to this guild instance.