Table of Contents

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 ulong

The ID of the channel.

messageId ulong

The ID of the message

name string

The name of the thread.

archiveAfter DiscordAutoArchiveDuration

The auto archive duration.

reason string

Reason for audit logs.

Returns

Task<DiscordThreadChannel>