the first commit
This commit is contained in:
commit
d5920470cc
18 changed files with 1887 additions and 0 deletions
12
commands/bot/ping.js
Normal file
12
commands/bot/ping.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const { SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('ping')
|
||||
.setDescription('Replies with Pong!'),
|
||||
async execute(interaction) {
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
await interaction.reply(`Pong, ${nickname}!`);
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue