Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
0xEmma authored Apr 1, 2024
1 parent ff9185d commit 335728e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cmds/core/other.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging

from discord import ApplicationContext, Embed, Interaction, Message, WebhookMessage, slash_command, ui
from discord import ApplicationContext, Embed, Interaction, Message, WebhookMessage, slash_command, InputTextStyle
from discord.ui import InputText, Modal
from discord.ext import commands

from src.bot import Bot
Expand All @@ -11,12 +12,12 @@
logger = logging.getLogger(__name__)


class FeedbackModal(ui.Modal):
class FeedbackModal(Modal):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)

self.add_item(discord.ui.InputText(label="Title"))
self.add_item(discord.ui.InputText(label="Feedback", style=discord.InputTextStyle.long))
self.add_item(InputText(label="Title"))
self.add_item(InputText(label="Feedback", style=discord.InputTextStyle.long))
async def callback(self, interaction: discord.Interaction):

await interaction.response.send_message("Thank you, your feedback has been recorded.")
Expand Down

0 comments on commit 335728e

Please sign in to comment.