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
scheduledEventIdulongThe Id of the event to get.
withUserCountbool?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
scheduledEventDiscordScheduledEventThe event to get.
withUserCountbool?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.