fix(moderation): fixed fetch_ban on line 303
This commit is contained in:
parent
d580331b31
commit
45a5354299
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue