Skip to main content
Version: 0.37.46

RESTPostAPIChannelThreadsJSONBody

Hierarchy

Index

Properties

optionalauto_archive_duration

auto_archive_duration?: ThreadAutoArchiveDuration

The amount of time in minutes to wait before automatically archiving the thread

The 3 day and 7 day archive durations require the server to be boosted. The guild features will indicate if a server is able to use those settings.

optionalinvitable

invitable?: boolean

Whether non-moderators can add other non-moderators to the thread; only available when creating a private thread

name

name: string

1-100 character thread name

optionalrate_limit_per_user

rate_limit_per_user?: number

Amount of seconds a user has to wait before sending another message (0-21600)

optionaltype

type?: AnnouncementThread | PublicThread | PrivateThread

The type of thread to create

In API v9 and v10, type defaults to PRIVATE_THREAD. In a future API version this will be changed to be a required field, with no default.

See https://discord.com/developers/docs/resources/channel#channel-object-channel-types

@default

ChannelType.PrivateThread