Compare commits
2 commits
896e437766
...
011002e379
Author | SHA1 | Date | |
---|---|---|---|
011002e379 | |||
880a9a0aa3 |
2 changed files with 22 additions and 0 deletions
10
commands/server.js
Normal file
10
commands/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.`);
|
||||||
|
},
|
||||||
|
};
|
12
commands/user.js
Normal file
12
commands/user.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
const { SlashCommandBuilder } = require('discord.js');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
data: new SlashCommandBuilder()
|
||||||
|
.setName('user')
|
||||||
|
.setDescription('Provides information about the user.'),
|
||||||
|
async execute(interaction) {
|
||||||
|
// interaction.user is the object representing the User who ran the command
|
||||||
|
// interaction.member is the GuildMember object, which represents the user in the specific guild
|
||||||
|
await interaction.reply(`This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`);
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in a new issue