Skip to content

sending messages in thread using bot #904

Answered by WiseDevHelper
indra467 asked this question in Q&A
Discussion options

You must be logged in to vote

If you're creating a public thread and want to start it with a message, use the startMessage property of ThreadCreateOptions in ThreadManager#create.

Example:

const threadChannel = await channel.threads.create({
  startMessage: 'This is a new thread!',
  // Add more options...
});

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by almostSouji
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #903 on October 07, 2021 18:24.