diff --git a/moderation/moderation.py b/moderation/moderation.py index 3e28cab..6febd8a 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -322,7 +322,7 @@ class Moderation(commands.Cog): await target.send(embed=embed) except discord.errors.HTTPException: pass - await interaction.guild.ban(target.id, reason=f"Tempbanned by {interaction.user.id} for: {reason} (Duration: {parsed_time})", delete_message_seconds=delete_messages) + await interaction.guild.ban(target, reason=f"Tempbanned by {interaction.user.id} for: {reason} (Duration: {parsed_time})", delete_message_seconds=delete_messages) await self.mysql_log(interaction.guild.id, interaction.user.id, 'TEMPBAN', target.id, parsed_time, reason) else: await interaction.response.send_message(content=f"{target.mention} has been banned!\n**Reason** - `{reason}`")