mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: type issues
This commit is contained in:
1 parent
7dd3913ae8
commit
abcb75f06e
4 files changed
+5
-5
No files matched your search
@@ -5,7 +5,7 @@ import {
|
||||
InteractionEditReplyOptions,
|
||||
} from 'discord.js';
|
||||
import { InteractionReturnable } from '../../events/interactionCreate/index.js';
|
||||
import render from '../ui/render.js';
|
||||
import jsxToPng from '../node/jsxToPng.js';
|
||||
|
||||
export default async function normalizeInteractionReturnable(
|
||||
returnable: InteractionReturnable,
|
||||
@@ -29,7 +29,7 @@ export default async function normalizeInteractionReturnable(
|
||||
item,
|
||||
);
|
||||
} else {
|
||||
const image = await render(item);
|
||||
const image = await jsxToPng(item);
|
||||
if (!reply.files) reply.files = [];
|
||||
reply.files.push(image);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user