aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/modals.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-04-02 16:15:06 -0500
committerParker <contact@pkrm.dev>2024-04-02 16:15:06 -0500
commite38ed487ae0914888e12f2ce4d1283f5e3ea50f7 (patch)
treed7d1e62d1ddcdbea0bfc8a2d2fc4b1effafdf105 /code/cogs/modals.py
parente0b75e7de525747b32014bc9d83af7d38eccaddd (diff)
Add bug report command
Diffstat (limited to 'code/cogs/modals.py')
-rw-r--r--code/cogs/modals.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/cogs/modals.py b/code/cogs/modals.py
index 999f3da..390bbda 100644
--- a/code/cogs/modals.py
+++ b/code/cogs/modals.py
@@ -2,6 +2,7 @@ import discord
from discord import app_commands
from discord.ext import commands
+from bug_report import BugReport
from feedback import FeedbackForm
@@ -10,6 +11,11 @@ class Modals(commands.Cog):
self.bot = bot
@app_commands.command()
+ async def bug(self, interaction: discord.Interaction):
+ "Send a bug report to the developer"
+ await interaction.response.send_modal(BugReport(self.bot))
+
+ @app_commands.command()
async def feedback(self, interaction: discord.Interaction):
"Send bot feeback to the developer"
await interaction.response.send_modal(FeedbackForm(self.bot))