diff --git a/issues/issues.py b/issues/issues.py index 2b0cd55..cbe3446 100644 --- a/issues/issues.py +++ b/issues/issues.py @@ -43,20 +43,20 @@ class Issues(commands.Cog): self.passed_info: discord.Interaction = passed_info @discord.ui.button(label="Bot Bug", style=discord.ButtonStyle.danger, row=0) - async def issue_button_bot_bug(self, button: discord.ui.Button, interaction: discord.Interaction): - await self.passed_info.response.send_modal(Issues.BotBugModal()) + async def issue_button_bot_bug(self, interaction: discord.Interaction, button: discord.ui.Button): + await interaction.response.send_modal(Issues.BotBugModal()) @discord.ui.button(label="Cog Bug", style=discord.ButtonStyle.danger, row=1) - async def issue_button_cog_bug(self, button: discord.ui.Button, interaction: discord.Interaction): - await self.passed_info.response.send_modal(Issues.BotBugModal()) + async def issue_button_cog_bug(self, interaction: discord.Interaction, button: discord.ui.Button): + await interaction.response.send_modal(Issues.BotBugModal()) @discord.ui.button(label="Bot Suggestion", style=discord.ButtonStyle.blurple, row=0) - async def issue_button_bot_suggestion(self, button: discord.ui.Button, interaction: discord.Interaction): - await self.passed_info.response.send_modal(Issues.BotBugModal()) + async def issue_button_bot_suggestion(self, interaction: discord.Interaction, button: discord.ui.Button): + await interaction.response.send_modal(Issues.BotBugModal()) @discord.ui.button(label="Cog Suggestion", style=discord.ButtonStyle.blurple, row=1) - async def issue_button_cog_suggestion(self, button: discord.ui.Button, interaction: discord.Interaction): - await self.passed_info.response.send_modal(Issues.BotBugModal()) + async def issue_button_cog_suggestion(self, interaction: discord.Interaction, button: discord.ui.Button): + await interaction.response.send_modal(Issues.BotBugModal()) class BotBugModal(discord.ui.Modal, title="Creating issue..."): def __init__(self):