mirror of
https://github.com/TheShadowEevee/Konpeki-Discord-Bot.git
synced 2025-01-12 06:48:50 -06:00
17 lines
479 B
JavaScript
17 lines
479 B
JavaScript
|
/*
|
||
|
* Konpeki Shiho - Slash Command Definition File
|
||
|
* ping.js - A simple ping function
|
||
|
*
|
||
|
* Function modified from https://discordjs.guide/creating-your-bot/slash-commands.html
|
||
|
*/
|
||
|
|
||
|
const { SlashCommandBuilder } = require('discord.js');
|
||
|
|
||
|
module.exports = {
|
||
|
data: new SlashCommandBuilder()
|
||
|
.setName('ping')
|
||
|
.setDescription('Checks to see if the you or the bot is online'),
|
||
|
async execute(interaction) {
|
||
|
await interaction.reply({ content: 'Pong!', ephemeral: true });
|
||
|
},
|
||
|
};
|