upgrade to discord.js v14
This commit is contained in:
24 files changed
+1598
-1560
No files matched your search
+4
-4
@@ -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] });
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user