Rename FormLayout to ForumLayout (#3019)

This commit is contained in:
Filip Sobol
2023-05-05 17:48:52 +02:00
committed by GitHub
parent b1281a3e45
commit 71eb5c7fbf
2 changed files with 4 additions and 4 deletions

View File

@@ -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 */

View File

@@ -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. */