From 7388f70bbbe93cdab5f2e25d11056ca6dd8c435c Mon Sep 17 00:00:00 2001 From: Neko-Life Date: Thu, 5 Aug 2021 17:01:42 +0700 Subject: [PATCH] fix owner adCheck --- cmds/fun/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/fun/send.js b/cmds/fun/send.js index 33da130..40c4382 100644 --- a/cmds/fun/send.js +++ b/cmds/fun/send.js @@ -1,7 +1,7 @@ 'use strict'; const commando = require("@iceprod/discord.js-commando"); const emoteMessage = require("../../resources/emoteMessage"); -const { ranLog, errLog, trySend, tryReact, findChannelRegEx, cleanMentionID, getChannel } = require("../../resources/functions"); +const { ranLog, errLog, trySend, tryReact, cleanMentionID, getChannel } = require("../../resources/functions"); module.exports = class send extends commando.Command { constructor(client) { @@ -33,7 +33,7 @@ module.exports = class send extends commando.Command { } const sendThis = { content: sendTheMes, disableMentions: "all" }; if (msg.member?.hasPermission("MENTION_EVERYONE")) sendThis.disableMentions = "none"; - const send = await trySend(this.client, channel, sendThis); + const send = await trySend(this.client, channel, sendThis, !msg.client.owners.includes(msg.author)); const filter = () => true, collector = send.createReactionCollector(filter, { time: 15 * 6 * 1000 }); collector.on('collect', r => {