mirror of
https://github.com/danbulant/Shasha
synced 2026-06-09 01:20:58 +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) {
|
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";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue