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
ulongThe ID of the channel.
name
stringThe name of the thread.
archiveAfter
DiscordAutoArchiveDurationThe auto archive duration.
threadType
DiscordChannelTypeThe type of the thread.
reason
stringReason for audit logs.