'Nextcord creating threads on command

Is it possible to create a thread on command with nextcord? I tried to do that , but it didn't work. PyCharm did not give me any error message. Here is my Code:

@bot.command(name='create_thread')
@commands.has_permissions(create_public_threads=True)
async def thread(ctx, *, arg):
    await nextcord.create_thread(name=f'{arg}', message=None, auto_archive_duration=60, type=None, reason=None)

The error is in await nextcord.create_thread(name=f'{arg}', message=None, auto_archive_duration=60, type=None, reason=None), but I don't know what's wrong.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source