From 529fdfa34182cda6a014b69aa40b420bcac92571 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 19:20:07 -0400 Subject: [PATCH] misc(forums): changed owner_id to owner.id --- forums/forums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index 6f6ce4f..d299da8 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -27,7 +27,7 @@ class Forums(commands.Cog): } if match and reason: passed_info.update({"reason": reason}) - if match or ctx.author.id == ctx.channel.owner_id: + if match or ctx.author.id == ctx.channel.owner.id: msg = await ctx.send("Are you sure you'd like to mark this thread as resolved?") passed_info.update({"msg": msg}) await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info)) @@ -47,7 +47,7 @@ class Forums(commands.Cog): @ui.button(label="Yes", style=discord.ButtonStyle.success, emoji="✅") async def resolved_button_yes(self, button: ui.Button, interaction: discord.Interaction): match = any(role_id in interaction.user.roles for role_id in await self.config.guild(interaction.guild).request_roles()) - if match or interaction.user.id == interaction.channel.owner_id: + if match or interaction.user.id == interaction.channel.owner.id: channel = self.ctx.channel await interaction.response.defer() if self.reason: @@ -65,7 +65,7 @@ class Forums(commands.Cog): @ui.button(label="No", style=discord.ButtonStyle.danger, emoji="❌") async def resolved_button_no(self, button: ui.Button, interaction: discord.Interaction): match = any(role_id in interaction.user.roles for role_id in await self.config.guild(interaction.guild).request_roles()) - if match or interaction.user.id == interaction.channel.owner_id: + if match or interaction.user.id == interaction.channel.owner.id: await interaction.response.defer() await self.msg.delete() await self.ctx.message.delete()