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: