#'SupportModal' object has no attribute '_create_channel'

1 messages · Page 1 of 1 (latest)

young sluice
#

Hello, such a problem, when the Modal is sent, I do not create a channel with an error:

Traceback (most recent call last):
  File "H:\PyCharm\carpeDIEM_ticket\venv\Lib\site-packages\disnake\ui\modal.py", line 208, in _scheduled_task
    await self.callback(interaction)
  File "H:\PyCharm\carpeDIEM_ticket\cogs\Ticket\ticket_CreateMessage.py", line 47, in callback
    channel = await disnake.Guild.create_text_channel(self, name=f"ticket-{inter.author}", category=category)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\PyCharm\carpeDIEM_ticket\venv\Lib\site-packages\disnake\guild.py", line 1324, in create_text_channel
    data = await self._create_channel(
                 ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SupportModal' object has no attribute '_create_channel'```
sweet idol
#
channel = await disnake.Guild.create_text_channel(self, name=f"ticket-{inter.author}", category=category)
#

is where ur error lies

slow prismBOT
#

What's wrong with it?

unborn torrentBOT
#
Solved!

Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.