mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: Interaction.respond embeds to snake case
This commit is contained in:
parent
c4e50badc1
commit
7ed5d6b3d5
@ -30,6 +30,7 @@ import { Message } from './message';
|
|||||||
import { Permissions } from './special/permissions';
|
import { Permissions } from './special/permissions';
|
||||||
import { Webhook } from './webhook';
|
import { Webhook } from './webhook';
|
||||||
import { InteractionOptions } from './special/interaction-options';
|
import { InteractionOptions } from './special/interaction-options';
|
||||||
|
import { NewEmbed } from './embed';
|
||||||
|
|
||||||
export type InteractionResponseWith = {
|
export type InteractionResponseWith = {
|
||||||
with: InteractionApplicationCommandCallbackData;
|
with: InteractionApplicationCommandCallbackData;
|
||||||
@ -167,7 +168,7 @@ export abstract class BaseInteraction implements Model {
|
|||||||
: WEBHOOK_MESSAGE_ORIGINAL(this.session.applicationId, this.token),
|
: WEBHOOK_MESSAGE_ORIGINAL(this.session.applicationId, this.token),
|
||||||
{
|
{
|
||||||
content: options.content,
|
content: options.content,
|
||||||
embeds: options.embeds,
|
embeds: options.embeds?.map(NewEmbed),
|
||||||
file: options.files,
|
file: options.files,
|
||||||
components: options.components,
|
components: options.components,
|
||||||
allowed_mentions: options.allowedMentions && {
|
allowed_mentions: options.allowedMentions && {
|
||||||
@ -283,7 +284,7 @@ export abstract class BaseInteraction implements Model {
|
|||||||
allowed_mentions: options?.allowedMentions,
|
allowed_mentions: options?.allowedMentions,
|
||||||
flags: options?.flags,
|
flags: options?.flags,
|
||||||
chocies: options?.choices,
|
chocies: options?.choices,
|
||||||
embeds: options?.embeds,
|
embeds: options?.embeds?.map(NewEmbed),
|
||||||
title: options?.title,
|
title: options?.title,
|
||||||
components: options?.components,
|
components: options?.components,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user