Table of Contents

Method CreateThreadAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CreateThreadAsync(ulong, string, DiscordAutoArchiveDuration, DiscordChannelType, string)

Creates a thread.

public Task<DiscordThreadChannel> CreateThreadAsync(ulong channelId, string name, DiscordAutoArchiveDuration archiveAfter, DiscordChannelType threadType, string reason = null)

Parameters

channelId ulong

The ID of the channel.

name string

The name of the thread.

archiveAfter DiscordAutoArchiveDuration

The auto archive duration.

threadType DiscordChannelType

The type of the thread.

reason string

Reason for audit logs.

Returns

Task<DiscordThreadChannel>