fix(moderation): fixed fetch_ban on line 303

This commit is contained in:
Seaswimmer 2023-10-05 11:16:21 -04:00
parent d580331b31
commit 45a5354299
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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: