Creating/Deleting (not assigning) Channel Tags programmatically
Hi all !
I'm looking for a way to modify programmatically the
availableTags[ ]
array of the interaction.channel
object, 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 setAppliedTags
on 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
• 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.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💯 ok perfect answer !
Works nice.
You can close/archive this post.