fix: types

This commit is contained in:
TrèsAbhi committed 2024-03-16 15:12:47 -05:00
1 parent dba5a0a2cd
commit 81cb1afeff
1 file changed
+4 -1
@@ -5,6 +5,7 @@ import {
EmbedBuilder, EmbedBuilder,
InteractionEditReplyOptions, InteractionEditReplyOptions,
InteractionReplyOptions, InteractionReplyOptions,
MessageEditOptions,
} from 'discord.js'; } from 'discord.js';
import { InteractionReturnable } from '../../events/interactionCreate'; import { InteractionReturnable } from '../../events/interactionCreate';
import jsxToPngThreaded from '../blitzkrieg/jsxToPngThreaded'; import jsxToPngThreaded from '../blitzkrieg/jsxToPngThreaded';
@@ -13,7 +14,9 @@ export default async function normalizeInteractionReturnable(
returnable: InteractionReturnable, returnable: InteractionReturnable,
) { ) {
const images: [number, Buffer][] = []; const images: [number, Buffer][] = [];
const reply: InteractionEditReplyOptions & InteractionReplyOptions = {}; const reply: InteractionEditReplyOptions &
InteractionReplyOptions &
MessageEditOptions = {};
const awaitedReturnable = await returnable; const awaitedReturnable = await returnable;
const normalizedReturnable = Array.isArray(awaitedReturnable) const normalizedReturnable = Array.isArray(awaitedReturnable)