initial commit - base code
This commit is contained in:
15 files changed
+2257
No files matched your search
@@ -0,0 +1,31 @@
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "ping",
|
||||
debug: true,
|
||||
global: true,
|
||||
description: "Test bot activity",
|
||||
usage: "",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
options: [],
|
||||
SlashCommand: {
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
* @param {import("discord.js").Message} message
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
run: async (client, interaction, args, start) => {
|
||||
const end = new Date().getTime();
|
||||
const pingEmbed = new EmbedBuilder()
|
||||
.setDescription(`🏓 **Pong!** Bot ping: ${end - start}ms`)
|
||||
.setColor(client.config.Colors.Default);
|
||||
|
||||
return interaction.send({ embeds: [pingEmbed] });
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user