Method GetInviteAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
GetInviteAsync(string, bool?, bool?)
Gets an invite.
public Task<DiscordInvite> GetInviteAsync(string inviteCode, bool? withCounts = null, bool? withExpiration = null)
Parameters
inviteCode
stringThe invite code.
withCounts
bool?Whether to include presence and total member counts in the returned invite.
withExpiration
bool?Whether to include the expiration date in the returned invite.