Re-add a form of size limit

This commit is contained in:
TheEssem 2021-05-06 22:01:30 -05:00
parent 364d8bf006
commit c4b57ac617
2 changed files with 8 additions and 0 deletions

View file

@ -57,6 +57,10 @@ class ImageCommand extends Command {
collections.runningCommands.delete(this.message.author.id);
return this.constructor.noImage;
}
if (image.type === "large") {
collections.runningCommands.delete(this.message.author.id);
return `${this.message.author.mention}, that image is too large!`;
}
magickParams.path = image.path;
magickParams.type = image.type;
magickParams.url = image.url; // technically not required but can be useful for text filtering