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
limit
intThe maximum number of join requests to return. Defaults to 100.
statusType
JoinRequestStatusType?The status type to filter join requests by. Can be Submitted, Approved, or Rejected.
before
ulong?Retrieve join requests before this ID.
after
ulong?Retrieve join requests after this ID.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when the status type is not supported.