Owners are users. Not ID hm

This commit is contained in:
Neko Life 2021-05-27 23:07:24 +00:00
parent 63cfd01076
commit 5091dce3b5
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ module.exports = class send extends commando.Command {
if (!channel) {
channel = findChannelRegEx(msg, search, ["category", "voice"])[0];
if (!channel) {
if (this.client.owners.includes(msg.author.id)) {
if (this.client.owners.includes(msg.author)) {
channel = this.client.channels.cache.get(search);
}
if (!channel) {

View file

@ -31,7 +31,7 @@ module.exports = class servav extends commando.Command {
}
const footerQuote = res?.["settings"]?.defaultEmbed?.footerQuote;
let icon, target;
if (server_ID && this.client.owners.includes(msg.author.id)) {
if (server_ID && this.client.owners.includes(msg.author)) {
if (!/\D/.test(server_ID)) {
target = this.client.guilds.cache.get(server_ID);
} else {

View file

@ -17,7 +17,7 @@ module.exports = class setfootq extends commando.Command {
}
async run(msg, args) {
try {
if (msg.guild ? !msg.guild.member(msg.author).hasPermission("MANAGE_GUILD") : false && !this.client.owners.includes(msg.author.id)) {
if (msg.guild ? !msg.guild.member(msg.author).hasPermission("MANAGE_GUILD") : false && !this.client.owners.includes(msg.author)) {
return trySend(this.client, msg, 'No lol');
}
const data = msg.guild ? "Guild" : "User";