Ignoring exception in view <PaymentButton timeout=None children=2> for item <Button style=<ButtonStyle.secondary: 2> url=None disabled=False label='Confirmar compra.' emoji=<PartialEmoji animated=False name=':white_check_mark:' id=None> row=None>:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.9/site-packages/discord/ui/view.py", line 414, in _scheduled_task
await item.callback(interaction)
File "/home/container/structure/events/store.py", line 237, in button_two
async def button_two(self, button, interaction): ConfirmModal(self.bot, self.type, self.giga)
File "/home/container/structure/events/store.py", line 216, in __init__
self.add_item(discord.ui.InputText(label="ID do cliente"))
File "/home/container/.local/lib/python3.9/site-packages/discord/ui/modal.py", line 199, in add_item
if len(self._children) > 5:
AttributeError: 'ConfirmModal' object has no attribute '_children'
#Error in Modal
1 messages · Page 1 of 1 (latest)
class ConfirmModal(discord.ui.Modal):
def __init__(self, bot, type, giga):
self.bot = bot
self.type = type
self.giga = giga
self.add_item(discord.ui.InputText(label="ID do cliente"))
self.add_item(discord.ui.InputText(label="E-mail do cliente"))
self.add_item(discord.ui.InputText(label="Nome do usuário do cliente", placeholder="Sem espaços e em minúsculas."))
async def callback(self, interaction): CreateHost(self)
you're missing a super().__init__()
lol
Done with your help thread?
Please close your own help thread by using </close:882631512829329448> with @green hemlock.