Functionalities
Functions
Data
Other
$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.

bot.Command({
name: "vanity-uses",
code: `
$guildVanityUses
`
})

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

bot.Command({
name: "vanity",
code: `
$guildVanityUses[$message[1]]
$onlyIf[$isBotInGuild[$message[1]]==true;I'm not in that server]
`
})
Copy link