Fix more v13 changes

This commit is contained in:
Dragon Fire
2024-03-21 22:07:39 -04:00
parent a849e9c1c3
commit 25a17c790b
2 changed files with 10 additions and 4 deletions
+6 -3
View File
@@ -28,15 +28,18 @@ module.exports = class WhereIsEverybodyCommand extends Command {
}
async run(msg) {
await msg.channel.send('"It\'s quiet..."', {
await msg.channel.send({
content: '"It\'s quiet..."',
files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-1.jpg')]
});
await delay(5000);
await msg.channel.send('"Too quiet..."', {
await msg.channel.send({
content: '"Too quiet..."',
files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-2.jpg')]
});
await delay(5000);
return msg.channel.send('"Where is @everyone?"', {
return msg.channel.send({
content: '"Where is @everyone?"',
disableMentions: 'none',
files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-3.jpg')]
});
+4 -1
View File
@@ -47,7 +47,10 @@ module.exports = class ReportRespondCommand extends Command {
.setTimestamp()
.setColor(typesColors[type]);
try {
await user.send('Your report has been evaluated with the following message:', { embeds: [embed] });
await user.send({
content: 'Your report has been evaluated with the following message:',
embeds: [embed]
});
return msg.say(`${displaytypes[type]} sent to ${user.tag}.`);
} catch {
return msg.say(`Could not send ${displaytypes[type]} to ${user.tag}. Probably blocked me.`);