blob: 999f3da2a081ea979298bab497625eea1aa1f0d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import discord
from discord import app_commands
from discord.ext import commands
from feedback import FeedbackForm
class Modals(commands.Cog):
def __init__(self, bot):
self.bot = 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))
async def setup(bot):
await bot.add_cog(Modals(bot))
|