Method GetScheduledEventsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetScheduledEventsAsync(bool?)
Gets the guilds scheduled events.
public Task<IReadOnlyDictionary<ulong, DiscordScheduledEvent>> GetScheduledEventsAsync(bool? withUserCount = null)
Parameters
withUserCount
bool?Whether to include user count.
Returns
- Task<IReadOnlyDictionary<ulong, DiscordScheduledEvent>>
A list of the guilds scheduled events.
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.