Skip to main content

$invite

Fetches information about a server invite

Usage

$invite[invite URL/code;property]

Available properties

NameTypeDescription
codestringReturns invite code
guildIDnumberReturns the guild ID the invite is for
inviterIDnumberReturns the user ID who created the invite
channelIDnumberReturns the guild channel ID that the invite leads to
isTemporarybooleanWhether the invitation grants temporary membership or not
usesnumberHow many users used the invitation
maxUsesnumberHow many times the invite can be used
createdAtnumberThe timestamp when the invite URL was created
expiresAtnumberThe timestamp when the invitation is going to expire

Example

client.command({
name: "invite",
code: `
$invite[abc123;guildID]
`
});