Table of Contents

Method GetScheduledEventAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetScheduledEventAsync(ulong, bool?)

Gets a specific scheduled events.

public Task<DiscordScheduledEvent> GetScheduledEventAsync(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.

Exceptions

NotFoundException

Thrown when the guild does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

GetScheduledEventAsync(DiscordScheduledEvent, bool?)

Gets a specific scheduled events.

public Task<DiscordScheduledEvent> GetScheduledEventAsync(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.

Exceptions

NotFoundException

Thrown when the guild does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.