Skip to content

/ban

Tip

This command requires the administrator permission by default. To learn how to change this, please check the faq command.

Ban user(s) from your server.

The bot needs permission to ban_members and manage_guild, as the bot does a bulk ban operation.

Parameters:

Name Type Description Default
users str A series of users to ban, provided either by ID or mentioning them. Separated a space. None
reason typing.Optional[str] A reason for the users to be banned. Defaults to None. None
delete_days int The amount of days of messages you want to delete. Defaults to 0. 0