mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix for the unknown days argument on hackban. (#3475)
This commit is contained in:
parent
6fa02b1a8d
commit
b64802b92f
@ -308,6 +308,9 @@ class KickBanMixin(MixinMeta):
|
|||||||
await ctx.send_help()
|
await ctx.send_help()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if days is None:
|
||||||
|
days = await self.settings.guild(guild).default_days()
|
||||||
|
|
||||||
if not (0 <= days <= 7):
|
if not (0 <= days <= 7):
|
||||||
await ctx.send(_("Invalid days. Must be between 0 and 7."))
|
await ctx.send(_("Invalid days. Must be between 0 and 7."))
|
||||||
return
|
return
|
||||||
@ -329,9 +332,6 @@ class KickBanMixin(MixinMeta):
|
|||||||
await show_results()
|
await show_results()
|
||||||
return
|
return
|
||||||
|
|
||||||
if days is None:
|
|
||||||
days = await self.settings.guild(guild).default_days()
|
|
||||||
|
|
||||||
for user_id in user_ids:
|
for user_id in user_ids:
|
||||||
user = guild.get_member(user_id)
|
user = guild.get_member(user_id)
|
||||||
if user is not None:
|
if user is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user