#parent_id CHANNEL_PARENT_INVALID: Category does not exist

1 messages · Page 1 of 1 (latest)

dawn patrolBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

fluid girder
#

^

fluid girder
#
            po = [
                interactions.PermissionOverwrite(id=ctx.guild.id, type=0, deny=interactions.Permissions.VIEW_CHANNEL),
                interactions.PermissionOverwrite(id=ctx.author.id, type=1, allow=interactions.Permissions.VIEW_CHANNEL),
                interactions.PermissionOverwrite(id=1367449111636213797, type=0, allow=interactions.Permissions.VIEW_CHANNEL)
            ]
            close_button = interactions.Button(style=interactions.ButtonStyle.DANGER, label='Ticket Schließen', emoji='🔒', custom_id='ticket_close')
            channel = await ctx.guild.create_channel(channel_type=interactions.ChannelType.GUILD_TEXT, name=f'{ctx.author.display_name}-stream', permission_overwrites=po, category=1382473516800016565)
#

The category exists

green quarry
#

move channel type after category 🤷‍♂️ @fluid girder

fluid girder
#

Wdm

#

To move the Channel in the categorie After i created it?

green quarry
#
channel = await ctx.guild.create_channel(name=f'{ctx.author.display_name}-stream', category=1382473516800016565, channel_type=interactions.ChannelType.GUILD_TEXT,  permission_overwrites=po)

@fluid girder

fluid girder
#

and this should fix the problem?

#

because on other bots it’s working well this way

green quarry
#

that's the way it works with my bot 🤷‍♂️. check perms of the bot, or delete and add a new category