Fix embed sending part 2

This commit is contained in:
Christer Warén 2021-08-04 11:12:07 +03:00
parent bb07884ab4
commit 3520e86f0b
8 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(message.bugDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embed: embed });
msg.channel.send({ embeds: embed });
},
};

View File

@ -24,7 +24,7 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(message.helpCommandDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embed: embed });
msg.channel.send({ embeds: embed });
} else {
const categories = [];
for (let i = 0; i < client.commands.size; i++) {
@ -45,7 +45,7 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(message.helpDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embed: embed });
msg.channel.send({ embeds: embed });
}
}
};

View File

@ -13,6 +13,6 @@ module.exports = {
.setColor(client.config.embedColor)
.setURL("https://discordapp.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=3427328&scope=bot")
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embed: embed });
return msg.channel.send({ embeds: embed });
}
};

View File

@ -23,6 +23,6 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(stations)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embed: embed });
return msg.channel.send({ embeds: embed });
}
};

View File

@ -35,7 +35,7 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(client.messages.sendedMaintenanceMessage)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
currentRadio.textChannel.send(cembed);
currentRadio.textChannel.send({ embeds: cembed });
client.radio.delete(radio.value);
stoppedRadios += "-" + radio.value + ": " + currentRadio.currentGuild.guild.name + "\n";
}
@ -48,6 +48,6 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription("Stopped all radios" + "\n" + stoppedRadios)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embed: embed });
return msg.channel.send({ embeds: embed });
}
};

View File

@ -25,6 +25,6 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(message.nowplayingDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embed: embed });
return msg.channel.send({ embeds: embed });
}
};

View File

@ -34,6 +34,6 @@ module.exports = {
.setColor(client.config.embedColor)
.setDescription(statistics)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embed: embed });
return msg.channel.send({ embeds: embed });
}
};

View File

@ -21,7 +21,7 @@ module.exports = {
.addField(client.messages.statusField4, client.config.version, true)
.addField(client.messages.statusField5, client.config.hostedBy, true)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embed: embed });
msg.channel.send({ embeds: embed });
}
};