$isBanned
Returns `true` if the user is banned from the server where the command is executed. Otherwise the functions returns `false`.

FUNCTION USAGE

  • $isBanned[userID]
  • $isBanned[userID;guildID]

Properties:

userID - ID of the user being checked for server ban status. guildID - Guild ID of where the user user is being checked for server ban status.

Example: Returning the true or false of the user is banned from the server

1
bot.Command({
2
name: "ban-stat",
3
code: `
4
$isBanned[$findUser[$message[]]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: