mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:40:18 +00:00
Discord.js V14 Compatibility part 2
This commit is contained in:
parent
99d588e55c
commit
097920671e
@ -1,4 +1,4 @@
|
|||||||
import Discord from "discord.js";
|
import { EmbedBuilder } from "discord.js";
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'help',
|
name: 'help',
|
||||||
@ -19,7 +19,7 @@ module.exports = {
|
|||||||
message.helpTitle = client.messages.helpTitle.replace("%client.user.username%", client.user.username);
|
message.helpTitle = client.messages.helpTitle.replace("%client.user.username%", client.user.username);
|
||||||
message.helpDescription = client.messages.helpDescription.replace("%commands%", commands);
|
message.helpDescription = client.messages.helpDescription.replace("%commands%", commands);
|
||||||
|
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(message.helpTitle)
|
.setTitle(message.helpTitle)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
|
@ -19,55 +19,46 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
emoji: "🌀",
|
emoji: "🌀",
|
||||||
label: "Restart Bot",
|
label: "Restart Bot",
|
||||||
description: "",
|
|
||||||
value: "0"
|
value: "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "<:RadioXStop:688541155377414168>",
|
emoji: "<:RadioXStop:688541155377414168>",
|
||||||
label: "Save Radios",
|
label: "Save Radios",
|
||||||
description: "",
|
|
||||||
value: "4"
|
value: "4"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "<:RadioXPlay:688541155712827458>",
|
emoji: "<:RadioXPlay:688541155712827458>",
|
||||||
label: "Restore Radios",
|
label: "Restore Radios",
|
||||||
description: "",
|
|
||||||
value: "5"
|
value: "5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "#️⃣",
|
emoji: "#️⃣",
|
||||||
label: "Reload Commands",
|
label: "Reload Commands",
|
||||||
description: "",
|
|
||||||
value: "6"
|
value: "6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "<:RadioXList:688541155519889482>",
|
emoji: "<:RadioXList:688541155519889482>",
|
||||||
label: "Reload Stations",
|
label: "Reload Stations",
|
||||||
description: "",
|
|
||||||
value: "7"
|
value: "7"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "<:dnd:746069698139127831>",
|
emoji: "<:dnd:746069698139127831>",
|
||||||
label: "Enable Maintenance Mode",
|
label: "Enable Maintenance Mode",
|
||||||
description: "",
|
|
||||||
value: "8"
|
value: "8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "<:online:746069731836035098>",
|
emoji: "<:online:746069731836035098>",
|
||||||
label: "Disable Maintenance Mode",
|
label: "Disable Maintenance Mode",
|
||||||
description: "",
|
|
||||||
value: "9"
|
value: "9"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "💤",
|
emoji: "💤",
|
||||||
label: "Streamer Mode – Manual",
|
label: "Streamer Mode – Manual",
|
||||||
description: "",
|
|
||||||
value: "10"
|
value: "10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
emoji: "📡",
|
emoji: "📡",
|
||||||
label: "Streamer Mode – Auto",
|
label: "Streamer Mode – Auto",
|
||||||
description: "",
|
|
||||||
value: "11"
|
value: "11"
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -14,13 +14,13 @@ module.exports = {
|
|||||||
.setTitle(message.statusTitle)
|
.setTitle(message.statusTitle)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
.addFields(
|
.addFields([
|
||||||
{ name: client.messages.statusField1, value: uptime },
|
{ name: client.messages.statusField1, value: uptime },
|
||||||
{ name: client.messages.statusField2, value: client.config.version },
|
{ name: client.messages.statusField2, value: client.config.version },
|
||||||
{ name: client.messages.statusField3, value: Date.now() - interaction.createdTimestamp + "ms" },
|
{ name: client.messages.statusField3, value: Date.now() - interaction.createdTimestamp + "ms" },
|
||||||
{ name: client.messages.statusField4, value: client.ws.ping },
|
{ 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')
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: client.messages.footerText,
|
text: client.messages.footerText,
|
||||||
|
Loading…
Reference in New Issue
Block a user