Fix emoji font stack, change sonic font, fix job ID not being sent on jobs that don't require image input, some error handling fixes

This commit is contained in:
Essem 2022-09-23 17:24:28 -05:00
parent 4f66519aa7
commit 7a88f6b693
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
14 changed files with 30 additions and 32 deletions

View file

@ -25,7 +25,8 @@ class ImageCommand extends Command {
const imageParams = {
cmd: this.constructor.command,
params: {}
params: {},
id: (this.interaction ?? this.message).id
};
if (this.type === "application") await this.acknowledge();
@ -49,7 +50,6 @@ class ImageCommand extends Command {
imageParams.params.type = image.type;
imageParams.url = image.url; // technically not required but can be useful for text filtering
imageParams.name = image.name;
imageParams.id = (this.interaction ?? this.message).id;
if (this.constructor.requiresGIF) imageParams.onlyGIF = true;
} catch (e) {
runningCommands.delete(this.author.id);