v5.0.0
$serverExists
Displays true or false depending if the server exists or not.
This function will tell you if the server provided exists or not. Returns true or false.
Raw usage: $serverExists[Guild ID]
Example:
1
bot.command({
2
name: "server",
3
code: `$serverExists[$message]`
4
})
5
/**
6
* This will check if the server ID
7
* (Provided in the message by the user)
8
* Is a valid guild ID or not.
9
*/
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub