Math & Text
randomGuildID
$randomGuildID[]
Returns the ID of a random server among the servers where the bot is present.
Syntax
$randomGuildID
$randomGuildID[]
The $randomGuildID[] function returns the Discord ID of a random server from all servers where the bot is present.
Syntax
$randomGuildID
Note: This function takes no parameters.
Return Value
The Discord ID (snowflake) of a random server, as a string.
Examples
Get a random server ID
Random server ID: $randomGuildID
Get information about a random server
$title[Random server]
$description[Name: $serverName[$randomGuildID]]
$addField[Members:;$membersCount[$randomGuildID]]
Notes
- The server is chosen from all servers where the bot is present.
- Each server has an equal probability of being selected.