mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +00:00
Fixed in DM usage
This commit is contained in:
parent
db21dcb9b4
commit
8b5d5c8955
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module.exports = class mydatabase extends commando.Command {
|
|||
});
|
||||
}
|
||||
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");
|
||||
}
|
||||
const data = msg.guild ? "Guild" : "User";
|
||||
|
|
|
|||
Loading…
Reference in a new issue