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 ✿OP3y ago
this is my code for creating the channel!
cinnamew ✿
cinnamew ✿OP3y ago
i don't know how to get the parent, which is why it's crashing rn 🥲
CanineData
CanineData3y ago
interaction.channel not interaction.guild.channel
cinnamew ✿
cinnamew ✿OP3y ago
wait so interaction.channel.parent?
CanineData
CanineData3y ago
yeah
cinnamew ✿
cinnamew ✿OP3y ago
ohh thank u!
Want results from more Discord servers?
Add your server