Method GetJoinRequestsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetJoinRequestsAsync(int, JoinRequestStatusType?, ulong?, ulong?)
Gets the join requests.
[DiscordUnreleased("This feature is not available for bots at the current time")]
[Obsolete("This feature is not available for bots at the current time", true)]
public Task<DiscordGuildJoinRequestSearchResult> GetJoinRequestsAsync(int limit = 100, JoinRequestStatusType? statusType = null, ulong? before = null, ulong? after = null)
Parameters
limitintThe maximum number of join requests to return. Defaults to 100.
statusTypeJoinRequestStatusType?The status type to filter join requests by. Can be Submitted, Approved, or Rejected.
beforeulong?Retrieve join requests before this ID.
afterulong?Retrieve join requests after this ID.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when the status type is not supported.