$ban
Bans a user.
Usage
This function has four params.
Param
Description
Type
Required
guildID
The guild to ban this user from.
Snowflake
Yes
userID
The user to ban from this guild.
Snowflake
Yes
reason
The reason for this ban.
String
No
deleteDays
Number of days of messages to delete, must be between 0 and 7 inclusive.
Integer
No
Example
Last updated
Was this helpful?