Create a new Invite Method Handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.invite.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Delete an invite
Permissions needed | Condition |
---|---|
MANAGE_CHANNELS | for invite that belongs to a specific channel |
MANAGE_GUILD | delete any invite guild wide |
const client = new SnowTransfer("TOKEN")
const invite = await client.invite.deleteInvite("inviteId")
Get the invite data on an invite id
// Gets an invite with approximate_member_count and approximate_presence_count
const client = new SnowTransfer("TOKEN")
const invite = await client.invite.getInvite("inviteId", { with_counts: true })
Id of the invite
Optional
query: { Query params for additional metadata fields
Optional
guild_Optional
with_Optional
with_Generated using TypeDoc
Methods for interacting with invites