From 73a2fd9856b80a95f5a41c8ae217acb5a7856a1f Mon Sep 17 00:00:00 2001 From: Essem Date: Sat, 23 Apr 2022 18:41:05 -0500 Subject: [PATCH] Fixed emote classic command --- commands/general/emote.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/general/emote.js b/commands/general/emote.js index 0205f10..634d6a4 100644 --- a/commands/general/emote.js +++ b/commands/general/emote.js @@ -3,7 +3,7 @@ import Command from "../../classes/command.js"; class EmoteCommand extends Command { async run() { - const emoji = this.type === "classic" ? this.args.join(" ") : this.options.emoji; + const emoji = this.type === "classic" ? this.content : this.options.emoji; if (!emoji || !emoji.trim()) return "You need to provide an emoji!"; if (emoji.split(" ")[0].match(/^$/)) { return `https://cdn.discordapp.com/emojis/${emoji.split(" ")[0].replace(/^<(a)?:.+:(\d+)>$/, "$2")}.${emoji.split(" ")[0].replace(/^<(a)?:.+:(\d+)>$/, "$1") === "a" ? "gif" : "png"}`; @@ -30,4 +30,4 @@ class EmoteCommand extends Command { static arguments = ["[emote]"]; } -export default EmoteCommand; \ No newline at end of file +export default EmoteCommand;