Actually fix it

This commit is contained in:
Dragon Fire
2024-03-20 00:13:20 -04:00
parent 27a3fe1dbe
commit 461566ff6b
+2 -2
View File
@@ -42,7 +42,7 @@ module.exports = class ReportCommand extends Command {
const channel = await this.client.fetchReportChannel();
if (channel) {
try {
await channel.send({ embed });
await channel.send({ embeds: [embed] });
} catch {
await this.sendOwnerDM(embed);
}
@@ -55,7 +55,7 @@ module.exports = class ReportCommand extends Command {
async sendOwnerDM(embed) {
for (const owner of this.client.owner) {
try {
await this.client.users.cache.get(owner).send({ embed });
await this.client.users.cache.get(owner).send({ embeds: [embed] });
} catch {
continue;
}