upgrade to discord.js v14

This commit is contained in:
SowinskiBraeden committed 2022-08-24 23:23:44 -07:00
1 parent f32c04b5bc
commit 0cdd107b92
24 files changed
+1598 -1560

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "ping",
@@ -9,8 +9,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
options: [],
SlashCommand: {
options: [],
/**
*
* @param {require("../structures/QuarksBot")} client
@@ -24,9 +24,9 @@ module.exports = {
}
const end = new Date().getTime();
const pingEmbed = new MessageEmbed()
const pingEmbed = new EmbedBuilder()
.setDescription(`🏓 **Pong!** Bot ping: ${end - start}ms`)
.setColor(client.config.EmbedColor);
.setColor(client.config.Colors.Default);
return interaction.send({ embeds: [pingEmbed] });
},