Discord.js V14 Compatibility part 2

This commit is contained in:
Christer Warén 2022-07-19 00:55:41 +03:00
parent 99d588e55c
commit 097920671e
3 changed files with 5 additions and 14 deletions

View File

@ -1,4 +1,4 @@
import Discord from "discord.js";
import { EmbedBuilder } from "discord.js";
module.exports = {
name: 'help',
@ -19,7 +19,7 @@ module.exports = {
message.helpTitle = client.messages.helpTitle.replace("%client.user.username%", client.user.username);
message.helpDescription = client.messages.helpDescription.replace("%commands%", commands);
const embed = new Discord.MessageEmbed()
const embed = new EmbedBuilder()
.setTitle(message.helpTitle)
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
.setColor(client.config.embedColor)

View File

@ -19,55 +19,46 @@ module.exports = {
{
emoji: "🌀",
label: "Restart Bot",
description: "",
value: "0"
},
{
emoji: "<:RadioXStop:688541155377414168>",
label: "Save Radios",
description: "",
value: "4"
},
{
emoji: "<:RadioXPlay:688541155712827458>",
label: "Restore Radios",
description: "",
value: "5"
},
{
emoji: "#️⃣",
label: "Reload Commands",
description: "",
value: "6"
},
{
emoji: "<:RadioXList:688541155519889482>",
label: "Reload Stations",
description: "",
value: "7"
},
{
emoji: "<:dnd:746069698139127831>",
label: "Enable Maintenance Mode",
description: "",
value: "8"
},
{
emoji: "<:online:746069731836035098>",
label: "Disable Maintenance Mode",
description: "",
value: "9"
},
{
emoji: "💤",
label: "Streamer Mode Manual",
description: "",
value: "10"
},
{
emoji: "📡",
label: "Streamer Mode Auto",
description: "",
value: "11"
}
);

View File

@ -14,13 +14,13 @@ module.exports = {
.setTitle(message.statusTitle)
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
.setColor(client.config.embedColor)
.addFields(
.addFields([
{ name: client.messages.statusField1, value: uptime },
{ name: client.messages.statusField2, value: client.config.version },
{ name: client.messages.statusField3, value: Date.now() - interaction.createdTimestamp + "ms" },
{ name: client.messages.statusField4, value: client.ws.ping },
{ name: client.messages.statusField5, value: client.config.hostedBy },
)
{ name: client.messages.statusField5, value: client.config.hostedBy }
])
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
.setFooter({
text: client.messages.footerText,