Creating/Deleting (not assigning) Channel Tags programmatically

Hi all ! I'm looking for a way to modify programmatically the availableTags[ ] array of the interaction.channelobject, which list the possible tags you can stick to a post in a ThreadChannel. ThreadChannel which is an extension of BaseChannel does have methods to setAppliedTagson a Thread, as far as the Tags already exist. But neither ThreadChannel nor the BaseChannel that hosts the threads, contains a method to create/delete thread tags. In other words, I'm looking for the discord.js v14 equivalent of the discord.ForumChannel.create_tag method in discord.py any ideas ? hints ?
4 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
duck
duck12mo ago
the ThreadChannel isn't the forum channel itself <ThreadChannel>.parent would be the ForumChannel <ForumChannel>.setAvailableTags() completely sets what tags are available if you just want to append a tag, you'd want to copy <ForumChannel>.availableTags and append the new tag
d.js docs
d.js docs12mo ago
method ForumChannel#setAvailableTags() Sets the available tags for this forum channel
David CARRÈRE
David CARRÈRE12mo ago
💯 ok perfect answer ! Works nice. You can close/archive this post.