Skip to content

$ban

$ban will ban a user of a guild.

Usage

$ban[guildID;userID;days?;reason?]

Parameters

FieldTypeDescriptionRequired
guildID?numberFrom which guild the user should be banned from.true
userIDnumberThe user to ban.true
days?stringDays of message history to delete, cannot be higher than 7 daysfalse
reason?stringThe reason that will be displayed in the guild’s audit logs.false

Example(s)

This will ban a random user of your guild:

1
client.command({
2
name: "ban",
3
code: `
4
$ban[$guildID;$randomUserID;7;Imagine getting banned.]
5
`
6
});