Properly handle closing an image server connection, switch some "on" instances to "once"
This commit is contained in:
parent
8e7764fc57
commit
e8834c072a
3 changed files with 12 additions and 7 deletions
|
@ -4,7 +4,6 @@ const Command = require("../../classes/command.js");
|
|||
class ChannelCommand extends Command {
|
||||
async run() {
|
||||
if (!this.message.channel.guild) return `${this.message.author.mention}, this command only works in servers!`;
|
||||
console.log(this.message.member.permission);
|
||||
if (!this.message.member.permission.has("administrator") && this.message.member.id !== process.env.OWNER) return `${this.message.author.mention}, you need to be an administrator to enable/disable me!`;
|
||||
if (this.args.length === 0) return `${this.message.author.mention}, you need to provide whether I should be enabled or disabled in this channel!`;
|
||||
if (this.args[0] !== "disable" && this.args[0] !== "enable") return `${this.message.author.mention}, that's not a valid option!`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue