Entity Info
serverRegion
$serverRegion[] — Server Region
$serverRegion[] returns the value of the guild.region context variable supplied by the host. The engine does not query Discord for a region.
Syntax
$serverRegion[(unused)]
Parameters
One optional argument is accepted but ignored: the region of another server cannot be read.
Return Value
- Type:
string - The text of
guild.regionexactly as the host supplied it. - An empty string if the host supplied none.
Examples
Simple display
$sendMessage[🌍 Region: $serverRegion]
Informative embed
$title[Information on $serverName]
$addField[Region;$serverRegion;yes]
$addField[Verification Level;$serverVerificationLevel;yes]
$addField[Boost Level;$boostLevel;yes]
$thumbnail[$serverIcon]
$color[#5865F2]
Logs
$log[Server $serverName — Region: $serverRegion]
Notes
- The bot runner does not set
guild.regionby itself in the code that was checked, so the result is normally an empty string; do not rely on it. - The returned text is not interpreted by the engine.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.