feat(issues): added the rest of the buttons
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
This commit is contained in:
parent
b3c9ced80e
commit
72f633a83e
1 changed files with 13 additions and 1 deletions
|
@ -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__()
|
||||
|
|
Loading…
Reference in a new issue