initial upload
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { SlashCommandBuilder, MessageFlags, PermissionFlagsBits } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
cooldown: 30,
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('ping')
|
||||
.setDescription('Replies with Pong!')
|
||||
.setDefaultMemberPermissions(0),
|
||||
async execute(interaction) {
|
||||
await interaction.reply({ content: 'Pong!', flags: MessageFlags.Ephemeral });
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('server')
|
||||
.setDescription('Provides information about the server.'),
|
||||
async execute(interaction) {
|
||||
// interaction.guild is the object representing the Guild in which the command was run
|
||||
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
|
||||
},
|
||||
};
|
||||
@@ -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}.`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user