mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Added guilds command to admin.
This commit is contained in:
		
							parent
							
								
									979c00ddc8
								
							
						
					
					
						commit
						d85040b313
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -122,6 +122,16 @@ export default new Command({ | ||||||
| 					console.log(e); | 					console.log(e); | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|  | 		}), | ||||||
|  | 		guilds: new Command({ | ||||||
|  | 			description: "Shows a list of all guilds the bot is a member of.", | ||||||
|  | 			permission: Command.PERMISSIONS.BOT_SUPPORT, | ||||||
|  | 			async run($: CommonLibrary): Promise<any> | ||||||
|  | 			{ | ||||||
|  | 				const guildList = $.client.guilds.cache.array() | ||||||
|  | 					.map(e => e.name); | ||||||
|  | 				$.channel.send(guildList); | ||||||
|  | 			} | ||||||
| 		}) | 		}) | ||||||
| 	} | 	} | ||||||
| }); | }); | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue