From e38ed487ae0914888e12f2ce4d1283f5e3ea50f7 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 2 Apr 2024 16:15:06 -0500 Subject: Add bug report command --- code/cogs/modals.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code/cogs/modals.py') 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 @@ -9,6 +10,11 @@ class Modals(commands.Cog): def __init__(self, bot): 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" -- cgit v1.2.3-70-g09d2