Skip to content

Edit forum thread's tags with command #1214

Answered by SQKo
civilCornball asked this question in Q&A
Discussion options

You must be logged in to vote

You are overcomplicating (please refrain from using the Part __set() or offsetSet() methods), to modify Part attributes, just set the property and use the corresponding repository's save() method as the basic explained https://github.com/discord-php/DiscordPHP/wiki#parts

Simply do $thread->applied_tags = [1231231231231231231]
And then use the repository save method $threads->save($thread)->done() where $threads = $channel->threads

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@civilCornball
Comment options

Answer selected by civilCornball
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants