From 71eb5c7fbfab16bab7a647e7b9eea4f552b2cf6c Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Fri, 5 May 2023 17:48:52 +0200 Subject: [PATCH] Rename FormLayout to ForumLayout (#3019) --- packages/types/src/discord.ts | 6 +++--- packages/types/src/shared.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/types/src/discord.ts b/packages/types/src/discord.ts index 3b9ea3bab..3416cb5f7 100644 --- a/packages/types/src/discord.ts +++ b/packages/types/src/discord.ts @@ -12,7 +12,7 @@ import type { DefaultMessageNotificationLevels, EmbedTypes, ExplicitContentFilterLevels, - FormLayout, + ForumLayout, GatewayEventNames, GuildFeatures, GuildNsfwLevel, @@ -745,7 +745,7 @@ export interface DiscordChannel { /** the default sort order type used to order posts in GUILD_FORUM channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin */ default_sort_order?: SortOrderTypes | null /** the default forum layout view used to display posts in `GUILD_FORUM` channels. Defaults to `0`, which indicates a layout view has not been set by a channel admin */ - default_forum_layout?: FormLayout + default_forum_layout?: ForumLayout /** When a thread is created this will be true on that channel payload for the thread. */ newly_created?: boolean } @@ -2399,7 +2399,7 @@ export interface DiscordModifyChannel { /** the default sort order type used to order posts in forum channels */ default_sort_order?: SortOrderTypes | null /** the default forum layout view used to display posts in `GUILD_FORUM` channels. Defaults to `0`, which indicates a layout view has not been set by a channel admin */ - default_forum_layout?: FormLayout + default_forum_layout?: ForumLayout } /** https://discord.com/developers/docs/resources/emoji#create-guild-emoji */ diff --git a/packages/types/src/shared.ts b/packages/types/src/shared.ts index 3ea779379..2462b0bb7 100644 --- a/packages/types/src/shared.ts +++ b/packages/types/src/shared.ts @@ -927,7 +927,7 @@ export enum SortOrderTypes { CreationDate, } -export enum FormLayout { +export enum ForumLayout { /** No default has been set for forum channel. */ NotSet = 0, /** Display posts as a list. */