Entity Info
guildID
$guildID[]
Alias of $serverID. Returns the unique identifier (Snowflake) of the Discord server.
Syntax
$guildID
$guildID[] — Server Identifier (Alias)
$guildID[] is an alias of $serverID[]. It returns the unique identifier (Snowflake) of the current Discord server.
Syntax
$guildID
Parameters
No parameters.
Return Value
- Type:
string - The ID of the server as a numeric string.
Usage
Simple Display
$sendMessage[Server ID: $guildID]
Per-Server Command Restriction
$if[$guildID!=123456789012345678]
$sendMessage[⛔ This command is reserved for the main server.]
$stop
$endif
$sendMessage[✅ Command executed.]
Logs
$log[Action on server $guildID ($guildName)]
URL Construction
$sendMessage[Server link: https://discord.com/channels/$guildID]
Notes
$guildID[]is strictly identical to$serverID[]. Use whichever feels more natural.- The term “guild” is the technical name used by the Discord API to refer to a server.
- The ID is permanent and never changes, unlike the name.