Skip to content

Need help to post a message to a thread #1084

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

You must be logged in to vote

$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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@civilCornball
Comment options

@SQKo
Comment options

Answer selected by valzargaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
awaiting confirmation The issue has been resolved, but awaits confirmation from the creator to confirm.
3 participants
Converted from issue

This discussion was converted from issue #1078 on April 03, 2023 22:47.