Upgrade packages
This commit is contained in:
parent
9e963d90cb
commit
e67efd4197
4 changed files with 1047 additions and 1733 deletions
|
@ -12,6 +12,7 @@ export default class Claim extends ButtonEvent {
|
|||
public override async execute(interaction: ButtonInteraction) {
|
||||
if (!interaction.guild || !interaction.guildId) return;
|
||||
if (!interaction.channel) return;
|
||||
if (!interaction.channel.isSendable()) return;
|
||||
|
||||
await interaction.deferUpdate();
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import path from "path";
|
|||
import AppLogger from "../client/appLogger";
|
||||
import {existsSync} from "fs";
|
||||
import Inventory from "../database/entities/app/Inventory";
|
||||
import Jimp from "jimp";
|
||||
import {Jimp} from "jimp";
|
||||
|
||||
interface CardInput {
|
||||
id: string;
|
||||
|
@ -46,7 +46,7 @@ export default class ImageHelper {
|
|||
}
|
||||
}
|
||||
|
||||
const image = await loadImage(await imageData.getBufferAsync("image/png"));
|
||||
const image = await loadImage(await imageData.getBuffer("image/png"));
|
||||
|
||||
const x = i % gridWidth;
|
||||
const y = Math.floor(i / gridWidth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue