Add togif parameter

This commit is contained in:
Essem 2023-03-08 19:36:39 -06:00
parent cc7ea2762c
commit 10b80f2fd0
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
81 changed files with 293 additions and 259 deletions

View file

@ -25,7 +25,9 @@ class ImageCommand extends Command {
const imageParams = {
cmd: this.constructor.command,
params: {},
params: {
togif: !!this.options.togif
},
id: (this.interaction ?? this.message).id
};
@ -129,6 +131,11 @@ class ImageCommand extends Command {
description: "An image/GIF URL"
});
}
this.flags.push({
name: "togif",
type: 5,
description: "Force GIF output"
});
return this;
}