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

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

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

1
bot.Command({
2
name: "vanity",
3
code: `
4
$guildVanityURL[$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: