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