Method GetChannelAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetChannelAsync(ulong, bool)
Gets a channel.
public Task<DiscordChannel> GetChannelAsync(ulong id, bool fetch = false)
Parameters
Returns
- Task<DiscordChannel>
The requested channel.
Exceptions
- NotFoundException
Thrown when the channel does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.