Entity Info
useGuild
$useGuild[] — Choose the server of the run
$useGuild[] makes the rest of the script act on another server: channel and role functions, $serverName, $serverSnapshot… A private message has no server, so a script started by one (a modmail for instance) calls $useGuild first. Replies are still sent in the channel the script started from. Not in BibiScript.
Syntax
$useGuild[serverID]
Parameters
| Parameter | Description |
|---|---|
serverID |
Required. The ID of a server where the bot is present. Anything else raises Invalid guild ID., and a server the bot is not in raises Guild not found. |
Return Value
- Type: none (empty text).
Examples
Create a channel on the first server from a private message
$useGuild[$serverIDs[1]]
$createChannel[support-$username;text]
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.