Functionalities
Functions
Data
Other
$getGuildInvite
Returns a guild invite of the current guild or of the guild of the provided guild ID (only if the bot has `create_invite` permission).

FUNCTION USAGE

  • $getGuildInvite
  • $getGuildInvite[]
  • $getGuildInvite[guildID]

Properties:

[] - Leave brackets empty to return a guild invite where the command is executed in. Same as no brackets. guildID - Returns a guild invite to the defined guild ID.
  • Bot must be in the guild to read the data!

Example 1: Returns a guild invite where the command was executed.

bot.Command({
name: "invite",
code: `
$getGuildInvite
`
})
bot.Command({
name: "invite",
code: `
$getGuildInvite[5397459387459384533]
`
})
Copy link