Method GetUsersAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetUsersAsync(int?, ulong?, ulong?, bool?)
Gets a list of users RSVP'd to the scheduled event.
public Task<IReadOnlyDictionary<ulong, DiscordScheduledEventUser>> GetUsersAsync(int? limit = null, ulong? before = null, ulong? after = null, bool? withMember = null)
Parameters
limitint?The limit how many users to receive from the event. Defaults to 100. Max 100.
beforeulong?Get results of DiscordScheduledEventUser before the given snowflake.
afterulong?Get results of DiscordScheduledEventUser after the given snowflake.
withMemberbool?Whether to include guild member data.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the correct permissions.
- NotFoundException
Thrown when the event does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.