From 8433848774b3d6484988db642d450487f4a962fc Mon Sep 17 00:00:00 2001 From: Dotsian Date: Sun, 19 Jan 2025 02:16:43 -0500 Subject: [PATCH] Small fix --- ballsdex/packages/battle/cog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ballsdex/packages/battle/cog.py b/ballsdex/packages/battle/cog.py index e90343e..3f530b0 100644 --- a/ballsdex/packages/battle/cog.py +++ b/ballsdex/packages/battle/cog.py @@ -282,13 +282,13 @@ async def start(self, interaction: discord.Interaction, opponent: discord.Member opponent: discord.Member The user you want to battle. """ - if opponent.user.bot: + if opponent.bot: await interaction.response.send_message( "You can't battle against bots.", ephemeral=True, ) return - if opponent.user == interaction.user: + if opponent.id == interaction.user.id: await interaction.response.send_message( "You can't battle against yourself.", ephemeral=True, )