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

+14 -14
View File
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "me",
@@ -9,16 +9,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
options: [
{
name: "action",
description: "Message to state your action",
value: "action",
type: 3,
required: true,
},
],
SlashCommand: {
options: [
{
name: "action",
description: "Message to state your action",
value: "action",
type: 3,
required: true,
},
],
/**
*
* @param {require("../structures/QuarksBot")} client
@@ -31,8 +31,8 @@ module.exports = {
return interaction.send(`You are not allowed to use the bot in this channel.`);
}
const actionEmbed = new MessageEmbed()
.setColor(client.config.EmbedColor)
const actionEmbed = new EmbedBuilder()
.setColor(client.config.Colors.Default)
.setTitle('Action Performed')
.setDescription(`<@${interaction.member.user.id}> - *${args[0].value}*`)
.setTimestamp()
@@ -40,9 +40,9 @@ module.exports = {
if (client.exists(GuildDB.actionChannel)) {
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.actionChannel);
if (!channel) {
const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setDescriptions(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor("RED")
.setColor(client.config.Colors.Red)
return interaction.send({ embeds: [embed] });
}