Method GetEventsAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetEventsAsync(bool)
Gets the currently active or scheduled events in this guild.
public Task<IReadOnlyList<DiscordScheduledGuildEvent>> GetEventsAsync(bool withUserCounts = false)
Parameters
withUserCounts
boolWhether to include number of users subscribed to each event
Returns
- Task<IReadOnlyList<DiscordScheduledGuildEvent>>
The active and scheduled events on the server, if any.