Jump to content

error when trying to generate thread.

Pending 1.0.2

Kaooa
Kaooa

Posted

2025-05-14 20:00:00 ERROR    discord.app_commands.tree Ignoring exception in command 'Generate Thread'
Traceback (most recent call last):
  File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/commands.py", line 1292, in _invoke
    await self._callback(interaction, arg)
  File "/home/container/bot.py", line 200, in generate_suggestion_thread
    await interaction.channel.create_thread(name=embed.description[1:-1], message=message)
  File "/home/container/.local/lib/python3.11/site-packages/discord/channel.py", line 767, in create_thread
    data = await self._state.http.start_thread_with_message(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 744, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In name: Must be between 1 and 100 in length.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1188, in _call_context_menu
    await ctx_menu._invoke(interaction, value)
  File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/commands.py", line 1296, in _invoke
    raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'Generate Thread' raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In name: Must be between 1 and 100 in length.

Murder

Posted

Hey man apologies for the late reply i'm absolutely swamped with work at the minute. Seems like that’s because the suggestion/a field is too long for the embed. Does it work with other suggestions or was it just this suggestion? (If it works with this suggestion then seems like its a discord limitation restricting the length of the embed field).

 

Feel free to message me on discord if you would like as well: murderdev.

1.8m

Downloads

Total number of downloads.

8.3k

Customers

Total customers served.

125k

Files Sold

Total number of files sold.

2.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.