$unban
Allows you to unban a user from a guild. 3rd field may be optional with a reason.

FUNCTION USAGE:

  • $unban[userID]
  • $unban[userID;guildID]
  • $unban[userID;guildID;reason]

Properties:

userID - ID of the user to unban. guildID - The ID of the guild where you want the ban to be lifted. reason - Optional reason that logs in the audit log.

Without reason:

1
bot.Command({
2
name: "unban",
3
code: `
4
$unban[$message[1]]
5
6
$onlyIf[$userExists[$message[1]]==true;Invalid usage. Please use their userID.]
7
$onlyBotPerms[ban;Bot must have the \`{perms}\` permission]
8
`})
Copied!

With reason:

1
bot.Command({
2
name: "unban",
3
code: `
4
$unban[$message[1];$guildID;$messageSlice[>1]]
5
6
$onlyIf[$messageSlice[>1]!=;Provide a reason or comment to justify unbanning this user]
7
$onlyIf[$userExists[$message[1]]==true;Invalid usage. Please use their userID.]
8
$onlyBotPerms[ban;Bot must have the \`{perms}\` permission]
9
`})
Copied!
Last modified 4mo ago