Level 0: Every user - Public commands Level 1: Guild owners or members with respective admin role - Elevated guild commands Level 2: Global admins - Every command including levels below
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
const { SlashCommandBuilder } = require("discord.js");
|
|
|
|
module.exports = {
|
|
data: new SlashCommandBuilder()
|
|
.setName("ping")
|
|
.setDescription("Ping, yes"),
|
|
permissionLevel: 1,
|
|
async execute(interaction) {
|
|
interaction.reply({
|
|
content: "Pong!",
|
|
ephemeral: true
|
|
});
|
|
}
|
|
} |