mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: types
This commit is contained in:
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)
|
||||||
|
|||||||
Reference in new issue
Block a user