$globalBan
Bans the provided user ID from all servers the bot is in or all of the guilds defined by thier ID's.

FUNCTION USAGE

  • $globalBan[userID;reason]
  • $globalBan[userID;reason;guildID;guildID;..etc]

Properties:

userID - The ID of the user to ban. reason - The reason for the ban. guildID - The ID of the guild to ban the user from. Can be multiple ID's separated by semicolons. If no guild ID is defined, the user will be banned from all guilds the bot is in.
Example 1: Banning the user in all guilds the bot is in.
1
bot.Command({
2
name: "globalban",
3
code: `
4
$globalBan[564837562734659;Extremely annoying!]
5
Congratulations!, the user has been banned from all servers!!
6
`
7
})
Copied!
Example 2: Banning the user in a couple specific guilds.
1
bot.Command({
2
name: "globalban",
3
code: `
4
$globalBan[564837562734659;Extremely annoying!;375698324756023645;23842938652680247]
5
Congratulations!, the user has been banned from 2 servers!!
6
`
7
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: