mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +00:00
Owners are users. Not ID hm
This commit is contained in:
parent
63cfd01076
commit
5091dce3b5
3 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue