Functionalities
Other
Powered By GitBook
$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.

1
bot.Command({
2
name: "invite",
3
code: `
4
$getGuildInvite
5
`
6
})
Copied!
1
bot.Command({
2
name: "invite",
3
code: `
4
$getGuildInvite[5397459387459384533]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: