Method GetGuildWidgetAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetGuildWidgetAsync(ulong, CancellationToken)
Gets a guild widget.
public Task<DiscordWidget> GetGuildWidgetAsync(ulong id, CancellationToken cancellationToken = default)
Parameters
idulongThe Guild Id.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordWidget>
A guild widget.
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.