Unban Users with Reason

Unban Users with Reason

This command (unban_users_with_reason) unbans all users banned from the server with a given reason. This command may not work as expected if there are over 1000 active bans in your server.

Permissions

Bot Permissions

  • The bot must have the BAN_MEMBERS permission.

Parameters

ban_reason

Optional. The reason to match when unbanning users. If this parameter is not provided, then all users will be unbanned.

unban_reason

Optional. An explanation of why these users are being unbanned. Will be passed along to Discord's API.

ephemeral

Optional. Whether other server members should be able to see the bot's response. Does not affect logging.

Cooldown

Like other commands, cooldowns operate at the server level. The cooldown values are:

BasicStandardAdvanced
2 days1 day12 hours