Method CreateThreadFromMessageAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
CreateThreadFromMessageAsync(ulong, ulong, string, DiscordAutoArchiveDuration, string)
Creates a thread from a message.
public Task<DiscordThreadChannel> CreateThreadFromMessageAsync(ulong channelId, ulong messageId, string name, DiscordAutoArchiveDuration archiveAfter, string reason = null)
Parameters
channelId
ulongThe ID of the channel.
messageId
ulongThe ID of the message
name
stringThe name of the thread.
archiveAfter
DiscordAutoArchiveDurationThe auto archive duration.
reason
stringReason for audit logs.
Returns
- Task<DiscordThreadChannel>