create channel overrides adds to interaction.channel instead

When creating a channel with permissions overrides, it seems to add the overrides to the channel from where interaction

Here is the code I used, but the perm overrides are added to the channel from where the interaction is made in...
             const channel = await interaction.guild.channels.create({
                name: `ticket-${interaction.user.username}`,
                topic: `${channelTopic} for ${interaction.member}`,
                type: ChannelType.GuildText,
                parent: categoryChannel,
                permissionOverwrites: [
                    {
                        id: interaction.member.id,
                        allow: GenerateTicketUserPerms(),
                    },
                    {
                        id: interaction.guild.id,
                        deny: [PermissionFlagsBits.SendMessages, PermissionFlagsBits.ViewChannel],
                    },
                    {
                        id: supportRole.id,
                        allow: [PermissionFlagsBits.SendMessages, PermissionFlagsBits.ViewChannel],
                    },
                ],
            });
Was this page helpful?