Re-add a form of size limit
This commit is contained in:
parent
364d8bf006
commit
c4b57ac617
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue