From 45a535429919d247c012703962e518b0d29ac6de Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 11:16:21 -0400 Subject: [PATCH] fix(moderation): fixed fetch_ban on line 303 --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 6f16583..dd6633b 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -300,7 +300,7 @@ class Moderation(commands.Cog): async def ban(self, interaction: discord.Interaction, target: discord.User, reason: str, duration: str = None, delete_messages: Choice[int] = 0): """Ban a user.""" try: - await interaction.guild.fetch_ban(target.id) + await interaction.guild.fetch_ban(target) await interaction.response.send_message(content=f"{target.mention} is already banned!", ephemeral=True) return except discord.errors.NotFound: