Add ping slash command
This commit is contained in:
		
							parent
							
								
									46d0d8cb6a
								
							
						
					
					
						commit
						08b75d376e
					
				
							
								
								
									
										10
									
								
								commands/testing/ping.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								commands/testing/ping.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					const { SlashCommandBuilder } = require('discord.js');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					module.exports = {
 | 
				
			||||||
 | 
						data: new SlashCommandBuilder()
 | 
				
			||||||
 | 
							.setName('ping')
 | 
				
			||||||
 | 
							.setDescription('Replies with pong!'),
 | 
				
			||||||
 | 
						async execute(interaction) {
 | 
				
			||||||
 | 
							await interaction.reply('Pong!');
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user