Need help to post a message to a thread #1084
-
I really struggle with a lot of things I want to post a message to a thread. I tried to set: I tried to: which is also not woking. How can I get a Message posted to the thread? Additionally I want afterwards to get all messages of the thread to: $channel->getMessageHistory(['limit' => 50])->done(function (Collection $messages) { this code is not woking, equalless if in a cannel or thread.. Can a Function $thread = $discord->getChannel($thread_id)->getThread(thread_id); be implemented? Or how can I manage these things? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You will have to get the channel by id first then get the thread by the id. |
Beta Was this translation helpful? Give feedback.
$discord->getChannel()
can only lookup for a cached channel, not threads.setReplyTo()
can be only used to another message object, not a thread id.You will have to get the channel by id first then get the thread by the id.