$botLeave[]

Forces the bot to leave the server matching the provided server ID.

Syntax

$botLeave[Guild ID]

Parameters

  • Guild ID (Type: Snowflake || Flag: Required): The ID of the guild to leave.

Example

$nomention
$sendMessage[I left out `$serverName[$message]` server.]
$botLeave[$message]
!example 1009018156494368798 I left out BDFD Support server.

example

If you are using BDScript 2, put $botLeave[] at the very bottom of the code so that the code works correctly i.e:

❌ Not correct:

$botLeave[$message]
$nomention
$sendMessage[I left this server!]

✅ Correct:

$nomention
$sendMessage[I left this server!]
$botLeave[$message]