summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-08 18:03:13 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-08 18:03:13 +0200
commit4ca79adcaeadb63113789a699c8f2eadb9ffd55c (patch)
treed426e44431b6bc09c9292a525489424249ef034d /src/util/schemas
parentPrettier (diff)
parentMerge pull request #1156 from DEVTomatoCake/fix/messages-before-param (diff)
downloadserver-ts-4ca79adcaeadb63113789a699c8f2eadb9ffd55c.tar.xz
Merge branch 'master' into feat/webhooks-3
Diffstat (limited to 'src/util/schemas')
-rw-r--r--src/util/schemas/MessageCreateSchema.ts9
-rw-r--r--src/util/schemas/responses/GuildMessagesSearchResponse.ts4
2 files changed, 9 insertions, 4 deletions
diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts

index d7e47556..15537ca8 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts
@@ -16,7 +16,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Embed, MessageComponent, PollAnswer, PollMedia } from "@spacebar/util"; +import { + ActionRowComponent, + Embed, + PollAnswer, + PollMedia, +} from "@spacebar/util"; export type MessageCreateAttachment = { id: string; @@ -54,7 +59,7 @@ export interface MessageCreateSchema { **/ attachments?: MessageCreateAttachment[]; sticker_ids?: string[]; - components?: MessageComponent[]; + components?: ActionRowComponent[]; // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled poll?: PollCreationSchema; enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here diff --git a/src/util/schemas/responses/GuildMessagesSearchResponse.ts b/src/util/schemas/responses/GuildMessagesSearchResponse.ts
index 6121983e..ec41965b 100644 --- a/src/util/schemas/responses/GuildMessagesSearchResponse.ts +++ b/src/util/schemas/responses/GuildMessagesSearchResponse.ts
@@ -17,9 +17,9 @@ */ import { + ActionRowComponent, Attachment, Embed, - MessageComponent, MessageType, Poll, PublicUser, @@ -42,7 +42,7 @@ export interface GuildMessagesSearchMessage { timestamp: string; edited_timestamp: string | null; flags: number; - components: MessageComponent[]; + components: ActionRowComponent[]; poll: Poll; hit: true; }