Edit message in minesweeper

This commit is contained in:
Dragon Fire
2024-04-12 15:05:04 -04:00
parent 93bb1db77b
commit 88a4b0608c
7 changed files with 35 additions and 17 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class FirstMessageCommand extends Command {
}
async run(msg, { channel }) {
if (msg.guild && !channel.permissionsFor(this.client.user).has('READ_MESSAGE_HISTORY')) {
if (msg.guild && !channel.permissionsFor(this.client.user).has(PermissionFlagsBits.ReadMessageHistory)) {
return msg.reply(`Sorry, I don't have permission to read ${channel}...`);
}
const messages = await channel.messages.fetch({ after: 1, limit: 1 });