mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Added command info to help command.
This commit is contained in:
		
							parent
							
								
									5645d856cf
								
							
						
					
					
						commit
						d3958dcb11
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -21,6 +21,14 @@ module.exports = class extends Command { | ||||||
| 			const cmd = this.client.commands.get(command) || this.client.command.get(this.aliases.get(command)); | 			const cmd = this.client.commands.get(command) || this.client.command.get(this.aliases.get(command)); | ||||||
| 
 | 
 | ||||||
| 			if (!cmd) return message.channel.send(`\`${command}\` is not a valid command.`); | 			if (!cmd) return message.channel.send(`\`${command}\` is not a valid command.`); | ||||||
|  | 
 | ||||||
|  | 			embed.setAuthor(`${this.client.utils.captalise(cmd.name)} Command Help`, this.client.user.displayAvatarURL()); | ||||||
|  | 			embed.setDescription([ | ||||||
|  | 				`**❯ Aliases:** ${cmd.aliases.length ? cmd.aliases.map(alias => `\`${alias}\``).join(' ') : 'No Aliases'}`, | ||||||
|  | 				`**❯ Description:** ${cmd.description}`, | ||||||
|  | 				`**❯ Category:** ${cmd.category}`, | ||||||
|  | 				`**❯ Usage:** ${cmd.usage}` | ||||||
|  | 			]); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue