sending messages in thread using bot #904
-
Part of the guide or code sample the question is about Question |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
If you're creating a public thread and want to start it with a message, use the Example: const threadChannel = await channel.threads.create({
startMessage: 'This is a new thread!',
// Add more options...
}); |
Beta Was this translation helpful? Give feedback.
-
Thanks I fixed it already
…On Fri, 8 Oct 2021, 4:07 pm Wise, ***@***.***> wrote:
If you're creating a public thread and want to start it with a message,
use the startMessage property of ThreadCreateOptions
<https://discord.js.org/#/docs/main/stable/typedef/ThreadCreateOptions>
in ThreadManager#create
<https://discord.js.org/#/docs/main/stable/class/ThreadManager?scrollTo=create>
.
Example:
const threadChannel = await channel.threads.create({
startMessage: 'This is a new thread!',
// Add more options...});
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#904 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOV3UQATJ6XEF26JHYRYKCTUF3CWPANCNFSM5FR45OUQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
If you're creating a public thread and want to start it with a message, use the
startMessage
property ofThreadCreateOptions
inThreadManager#create
.Example: