Table of Contents

Method TryGetScheduledEventAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

TryGetScheduledEventAsync(ulong, bool?)

Tries to get a specific scheduled events.

public Task<DiscordScheduledEvent?> TryGetScheduledEventAsync(ulong scheduledEventId, bool? withUserCount = null)

Parameters

scheduledEventId ulong

The Id of the event to get.

withUserCount bool?

Whether to include user count.

Returns

Task<DiscordScheduledEvent>

A scheduled event or null if not found.

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

TryGetScheduledEventAsync(DiscordScheduledEvent, bool?)

Tries to get a specific scheduled events.

public Task<DiscordScheduledEvent?> TryGetScheduledEventAsync(DiscordScheduledEvent scheduledEvent, bool? withUserCount = null)

Parameters

scheduledEvent DiscordScheduledEvent

The event to get.

withUserCount bool?

Whether to include user count.

Returns

Task<DiscordScheduledEvent>

A scheduled event or null if not found.

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.