creating channel under specific category

hi!! i'm trying to have the bot create a channel under the category of the channel the command was sent in(command makes a button that, when clicked, makes the channel), but i'm not sure how to do that (i found one site where they made a category and then set the parent to that category, but i want to put the channel under an already-made category)
6 Replies
cinnamew ✿
cinnamew ✿2y ago
this is my code for creating the channel!
cinnamew ✿
cinnamew ✿2y ago
i don't know how to get the parent, which is why it's crashing rn 🥲
CanineData
CanineData2y ago
interaction.channel not interaction.guild.channel
cinnamew ✿
cinnamew ✿2y ago
wait so interaction.channel.parent?
CanineData
CanineData2y ago
yeah
cinnamew ✿
cinnamew ✿2y ago
ohh thank u!
Want results from more Discord servers?
Add your server
More Posts