Table of Contents

Method TryGetGuildPreview

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

TryGetGuildPreview(ulong, out DiscordGuildPreview?, CancellationToken)

Tries to get a guild preview.

public bool TryGetGuildPreview(ulong id, out DiscordGuildPreview? preview, CancellationToken cancellationToken = default)

Parameters

id ulong

The guild ID.

preview DiscordGuildPreview

The preview, if found.

cancellationToken CancellationToken

A token to cancel the request.

Returns

bool

True if the preview was found, otherwise false.