mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Edit message in minesweeper
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user