From 72f633a83ee50949aba9392746e45962bdf64614 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 18 Aug 2023 13:18:52 -0400 Subject: [PATCH] feat(issues): added the rest of the buttons --- issues/issues.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/issues/issues.py b/issues/issues.py index 76d753f..06b0298 100644 --- a/issues/issues.py +++ b/issues/issues.py @@ -42,10 +42,22 @@ class Issues(commands.Cog): super().__init__() self.passed_info: discord.Interaction = passed_info - @discord.ui.button(label="Bot Bug", style=discord.ButtonStyle.blurple) + @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()) + @discord.ui.button(label="Cog Bug", style=discord.ButtonStyle.danger, row=0) + async def issue_button_cog_bug(self, button: discord.ui.Button, interaction: discord.Interaction): + await self.passed_info.response.send_modal(Issues.BotBugModal()) + + @discord.ui.button(label="Bot Suggestion", style=discord.ButtonStyle.blurple, row=1) + async def issue_button_bot_suggestion(self, button: discord.ui.Button, interaction: discord.Interaction): + await self.passed_info.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()) + class BotBugModal(discord.ui.Modal, title="Creating issue..."): def __init__(self): super().__init__()