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;