Fixed bug with tags random
This commit is contained in:
parent
565e71571d
commit
c0f64c9c6a
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ exports.run = async (message, args) => {
|
|||
if (embeds.length === 0) return `${message.author.mention}, I couldn't find any tags!`;
|
||||
return paginator(message, embeds);
|
||||
case "random":
|
||||
return tags[random(Object.keys(tags))].content;
|
||||
return random(Array.from(tags))[1].content;
|
||||
default:
|
||||
if (!tags.has(args[0].toLowerCase())) return `${message.author.mention}, this tag doesn't exist!`;
|
||||
return tags.get(args[0].toLowerCase()).content;
|
||||
|
|
Loading…
Reference in a new issue