Load fonts directly from assets directory, fix image buffer issues
This commit is contained in:
parent
273e5b94d7
commit
4f66519aa7
22 changed files with 188 additions and 111 deletions
|
@ -77,13 +77,13 @@ class ImageCommand extends Command {
|
|||
}
|
||||
|
||||
try {
|
||||
const { arrayBuffer, type } = await runImageJob(imageParams);
|
||||
const { buffer, type } = await runImageJob(imageParams);
|
||||
if (type === "nogif" && this.constructor.requiresGIF) {
|
||||
return "That isn't a GIF!";
|
||||
}
|
||||
this.success = true;
|
||||
return {
|
||||
file: Buffer.from(arrayBuffer),
|
||||
file: buffer,
|
||||
name: `${this.constructor.command}.${type}`
|
||||
};
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue