Table of Contents

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

id ulong

The Guild Id.

widget DiscordWidget

The widget, if found.

cancellationToken CancellationToken

A token to cancel the request.

Returns

bool

True if the widget was found, otherwise false.