How can I get the name of appliedTags Id using discord.js #9767
-
I want to know how I can read the name of a tag in the forum thread channel. It seems like the data of the tag is stored as an Id in channel metadata. I could not find any way to get the name using this Id.
|
Beta Was this translation helpful? Give feedback.
Answered by
sdanialraza
Aug 12, 2023
Replies: 1 comment
-
You can use ForumChannel#availableTags which is an array of all the tags that can be used, you can use filter on it to get the tag matching the id you want: <ForumChannel>.availableTags.filter((tag) => tag.id === "tag_id") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JohnVersus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use ForumChannel#availableTags which is an array of all the tags that can be used, you can use filter on it to get the tag matching the id you want: