From 7ed5d6b3d5f80c88e0103307c84aa9d0e4ae720e Mon Sep 17 00:00:00 2001 From: Yuzu Date: Tue, 11 Oct 2022 09:42:17 -0500 Subject: [PATCH] fix: Interaction.respond embeds to snake case --- packages/core/src/structures/interactions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/structures/interactions.ts b/packages/core/src/structures/interactions.ts index 94e3607..8a9d553 100644 --- a/packages/core/src/structures/interactions.ts +++ b/packages/core/src/structures/interactions.ts @@ -30,6 +30,7 @@ import { Message } from './message'; import { Permissions } from './special/permissions'; import { Webhook } from './webhook'; import { InteractionOptions } from './special/interaction-options'; +import { NewEmbed } from './embed'; export type InteractionResponseWith = { with: InteractionApplicationCommandCallbackData; @@ -167,7 +168,7 @@ export abstract class BaseInteraction implements Model { : WEBHOOK_MESSAGE_ORIGINAL(this.session.applicationId, this.token), { content: options.content, - embeds: options.embeds, + embeds: options.embeds?.map(NewEmbed), file: options.files, components: options.components, allowed_mentions: options.allowedMentions && { @@ -283,7 +284,7 @@ export abstract class BaseInteraction implements Model { allowed_mentions: options?.allowedMentions, flags: options?.flags, chocies: options?.choices, - embeds: options?.embeds, + embeds: options?.embeds?.map(NewEmbed), title: options?.title, components: options?.components, };