upgrade to discord.js v14
This commit is contained in:
24 files changed
+1598
-1560
No files matched your search
+44
-44
@@ -1,4 +1,4 @@
|
||||
const { MessageEmbed } = require("discord.js");
|
||||
const { EmbedBuilder } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "help",
|
||||
@@ -9,40 +9,40 @@ module.exports = {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: "commands",
|
||||
description: "List all commands",
|
||||
value: "commands",
|
||||
type: 1,
|
||||
options: [{
|
||||
name: "command",
|
||||
description: "Get information on a specific command",
|
||||
value: "command",
|
||||
type: 3,
|
||||
required: false,
|
||||
}]
|
||||
},
|
||||
{
|
||||
name: "settings",
|
||||
description: "How to configure the settings",
|
||||
value: "settings",
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: "support",
|
||||
description: "Get support for QuarksBot",
|
||||
value: "support",
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: "credits",
|
||||
description: "QuarksBot Credits",
|
||||
value: "credits",
|
||||
type: 1,
|
||||
}
|
||||
],
|
||||
SlashCommand: {
|
||||
options: [
|
||||
{
|
||||
name: "commands",
|
||||
description: "List all commands",
|
||||
value: "commands",
|
||||
type: 1,
|
||||
options: [{
|
||||
name: "command",
|
||||
description: "Get information on a specific command",
|
||||
value: "command",
|
||||
type: 3,
|
||||
required: false,
|
||||
}]
|
||||
},
|
||||
{
|
||||
name: "settings",
|
||||
description: "How to configure the settings",
|
||||
value: "settings",
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: "support",
|
||||
description: "Get support for QuarksBot",
|
||||
value: "support",
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: "credits",
|
||||
description: "QuarksBot Credits",
|
||||
value: "credits",
|
||||
type: 1,
|
||||
}
|
||||
],
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
@@ -62,8 +62,8 @@ module.exports = {
|
||||
`\`/${cmd.name}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}`
|
||||
);
|
||||
|
||||
let Embed = new MessageEmbed()
|
||||
.setColor(client.config.EmbedColor)
|
||||
let Embed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`${Commands.join("\n")}
|
||||
|
||||
QuarksBot Version: v${client.config.Version}`);
|
||||
@@ -80,9 +80,9 @@ module.exports = {
|
||||
`❌ | Unable to find that command.`
|
||||
);
|
||||
|
||||
let embed = new MessageEmbed()
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(cmd.description)
|
||||
.setColor("GREEN")
|
||||
.setColor(client.config.Colors.Green)
|
||||
.setTitle(`How to use /${cmd.name} command`)
|
||||
|
||||
if (cmd.SlashCommand.options && cmd.SlashCommand.options[0].type == 1) {
|
||||
@@ -112,8 +112,8 @@ module.exports = {
|
||||
return interaction.send(embed);
|
||||
}
|
||||
} else if (args[0].name == 'settings') {
|
||||
const settingsHelp = new MessageEmbed()
|
||||
.setColor(client.config.EmbedColor)
|
||||
const settingsHelp = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setTitle('Using settings command to configure your guild')
|
||||
.setDescription(`Some features of QuarksBot require, or recommend settings.
|
||||
|
||||
@@ -165,8 +165,8 @@ module.exports = {
|
||||
return interaction.send({ embeds: [settingsHelp] });
|
||||
|
||||
} else if (args[0].name == 'support') {
|
||||
const supportEmbed = new MessageEmbed()
|
||||
.setColor(client.config.EmbedColor)
|
||||
const supportEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`**__QuarksBot Support__**
|
||||
|
||||
Are you experiencing troubles with QuarksBot?
|
||||
@@ -181,8 +181,8 @@ module.exports = {
|
||||
return interaction.send({ embeds: [supportEmbed] });
|
||||
|
||||
} else if (args[0].name == 'credits') {
|
||||
const creditsEmbed = new MessageEmbed()
|
||||
.setColor(client.config.EmbedColor)
|
||||
const creditsEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setTitle('QuarksBot Credits')
|
||||
.setDescription(`
|
||||
**Bot Author:** McDazzzled#5307
|
||||
|
||||
Reference in new issue
Block a user