Functionalities
Functions
Data
Other
$guildVanityURL
Returns the vanity URL code of the current guild or of the guild of the provided guild ID. Returns `undefined` if no vanity is found.

FUNCTION USAGE

  • $guildVanityURL[guildID]

Properties:

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

Example 1: Returning the vanity URL code of the current guild

bot.Command({
name: "vanity",
code: `
$guildVanityURL
`
})

Example 2: Returning the vanity URL code of the provided guild ID

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