fix modal

This commit is contained in:
Aaron Riedel 2022-06-02 02:06:39 +02:00
parent b4619c2f26
commit 5f48a8e845
Signed by: aaron
GPG key ID: 643004654D40D577

2
bot.py
View file

@ -168,7 +168,7 @@ async def gmroll(ctx,
class MyModal(Modal): class MyModal(Modal):
def __init__(self) -> None: def __init__(self) -> None:
self.message_id = 0 self.message_id = 0
super().__init__("Emojitext") super().__init__(title="Emojitext")
self.add_item(InputText(label="Dein Text:", placeholder="Jeder Buchstabe nur einmal!")) self.add_item(InputText(label="Dein Text:", placeholder="Jeder Buchstabe nur einmal!"))
def set_message_id(self, message_id): def set_message_id(self, message_id):
self.message_id = message_id self.message_id = message_id