Changed Tenor API url, account for ratelimits, switch Member#permission to Member#permissions

This commit is contained in:
TheEssem 2021-05-14 09:31:12 -05:00
parent e6e1ca61d3
commit 787eb347f6
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA
5 changed files with 13 additions and 10 deletions

View file

@ -56,10 +56,12 @@ class ImageCommand extends Command {
if (image === undefined) {
collections.runningCommands.delete(this.message.author.id);
return this.constructor.noImage;
}
if (image.type === "large") {
} else if (image.type === "large") {
collections.runningCommands.delete(this.message.author.id);
return `${this.message.author.mention}, that image is too large!`;
return "That image is too large!";
} else if (image.type === "tenorlimit") {
collections.runningCommands.delete(this.message.author.id);
return "I've been rate-limited by Tenor. Please try uploading the GIF elsewhere.";
}
magickParams.path = image.path;
magickParams.type = image.type;