Add server slash command
This commit is contained in:
parent
2d181d2f5a
commit
ec7e5bb86f
10
commands/testing/server.js
Normal file
10
commands/testing/server.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
const { SlashCommandBuilder } = require('discord.js');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
data: new SlashCommandBuilder()
|
||||||
|
.setName('server')
|
||||||
|
.setDescription('Provides information about the server.'),
|
||||||
|
async execute(interaction) {
|
||||||
|
await interaction.reply('This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.');
|
||||||
|
},
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user