Method TryGetGuildWidget
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
TryGetGuildWidget(ulong, out DiscordWidget?, CancellationToken)
Tries to get a guild widget.
public bool TryGetGuildWidget(ulong id, out DiscordWidget? widget, CancellationToken cancellationToken = default)
Parameters
idulongThe Guild Id.
widgetDiscordWidgetThe widget, if found.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- bool
True if the widget was found, otherwise false.