diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index ea3a3cc76..9ba6ff7e7 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -253,7 +253,12 @@ export interface MessageComponent { export interface ActionRowComponent extends MessageComponent { type: MessageComponentType.ActionRow; - components: (ButtonComponent | StringSelectMenuComponent | SelectMenuComponent | TextInputComponent)[]; + components: ( + | ButtonComponent + | StringSelectMenuComponent + | SelectMenuComponent + | TextInputComponent + )[]; } export interface ButtonComponent extends MessageComponent { @@ -277,7 +282,12 @@ export enum ButtonStyle { } export interface SelectMenuComponent extends MessageComponent { - type: MessageComponentType.StringSelect | MessageComponentType.UserSelect | MessageComponentType.RoleSelect | MessageComponentType.MentionableSelect | MessageComponentType.ChannelSelect; + type: + | MessageComponentType.StringSelect + | MessageComponentType.UserSelect + | MessageComponentType.RoleSelect + | MessageComponentType.MentionableSelect + | MessageComponentType.ChannelSelect; custom_id: string; channel_types?: number[]; placeholder?: string; diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 2d7e4179b..51263dcee 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -16,7 +16,12 @@ along with this program. If not, see . */ -import { ActionRowComponent, Embed, PollAnswer, PollMedia } from "@spacebar/util"; +import { + ActionRowComponent, + Embed, + PollAnswer, + PollMedia, +} from "@spacebar/util"; type Attachment = { id: string;