SHARDWIRE
ReferenceAction Models

CreateThreadActionPayload

`autoArchiveDuration` is in minutes (Discord-supported values). *

interface exported from src/discord/types.ts.

Summary

autoArchiveDuration is in minutes (Discord-supported values). *

Signature

export interface CreateThreadActionPayload {
	parentChannelId: Snowflake;
	name: string;
	/** When set, starts a thread on this message (requires a text-based parent). */
	messageId?: Snowflake;
	type?: 'public' | 'private';
	autoArchiveDuration?: 60 | 1440 | 4320 | 10080;
	reason?: string;
}

Structure

On this page