Functionalities
Other
Powered By GitBook
$guildVanityUses
Returns the amount of times a vanity URL code has been used. Returns `undefined` if no guild or vanity is found.

FUNCTION USAGE

    $guildVanityUses[guildID]

Properties:

guildID - Supply a guild ID to return the total vanity URL uses (if they have one)
Bot must be in the guild to read the data

Example 1: Returning the total vanity URL uses of the current guild.

1
bot.Command({
2
name: "vanity-uses",
3
code: `
4
$guildVanityUses
5
`
6
})
Copied!

Example 2: Returning the total vanity URL uses of the provided guild ID.

1
bot.Command({
2
name: "vanity",
3
code: `
4
$guildVanityUses[$message[1]]
5
$onlyIf[$isBotInGuild[$message[1]]==true;I'm not in that server]
6
`
7
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: