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!`;
 | 
					      if (embeds.length === 0) return `${message.author.mention}, I couldn't find any tags!`;
 | 
				
			||||||
      return paginator(message, embeds);
 | 
					      return paginator(message, embeds);
 | 
				
			||||||
    case "random":
 | 
					    case "random":
 | 
				
			||||||
      return tags[random(Object.keys(tags))].content;
 | 
					      return random(Array.from(tags))[1].content;
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
      if (!tags.has(args[0].toLowerCase())) return `${message.author.mention}, this tag doesn't exist!`;
 | 
					      if (!tags.has(args[0].toLowerCase())) return `${message.author.mention}, this tag doesn't exist!`;
 | 
				
			||||||
      return tags.get(args[0].toLowerCase()).content;
 | 
					      return tags.get(args[0].toLowerCase()).content;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue