Fixed in DM usage

This commit is contained in:
Neko Life 2021-05-24 13:29:53 +00:00
parent db21dcb9b4
commit 8b5d5c8955

View file

@ -16,7 +16,7 @@ module.exports = class mydatabase extends commando.Command {
}); });
} }
async run(msg) { async run(msg) {
if (!msg.guild?.member(msg.author).hasPermission("MANAGE_GUILD")) { if (msg.guild ? !msg.member.hasPermission("MANAGE_GUILD") : false) {
return trySend(this.client, msg, "No"); return trySend(this.client, msg, "No");
} }
const data = msg.guild ? "Guild" : "User"; const data = msg.guild ? "Guild" : "User";