Skip to content

Common Eval Scripts

John Grosh edited this page Nov 27, 2018 · 1 revision

Please remember that the eval command is potentially dangerous; it is locked to the bot owner, but never run a script unless you know what it does!

The following are examples of scripts that can be run via the eval command (bot owner only). If your bot's prefix is set to !! and you've enabled the eval command, an eval (such as the first one listed below) is run like !!eval jda.guilds

List all servers that the bot is on

jda.guilds

Leave a specific server

jda.getGuildById("GUILDIDHERE").leave().queue()