From 3ec1e03e2763242cce4a7129d697a05aa6ba9f25 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 17 Nov 2019 01:42:47 +0000 Subject: [PATCH] Perm fix --- src/commands/securesign_account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/securesign_account.ts b/src/commands/securesign_account.ts index 374309f..10d63e2 100644 --- a/src/commands/securesign_account.ts +++ b/src/commands/securesign_account.ts @@ -16,7 +16,7 @@ export default class SecureSign_Account extends Command { public async run(message: Message, args: string[]) { try { const user = await this.client.db.Account.findOne({ userID: message.author.id }); - if (!user || (user.permissions.staff && !(message.channel instanceof PrivateChannel))) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Run this command in your DMs!***`); + if (!user || (!user.permissions.staff && !(message.channel instanceof PrivateChannel))) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Run this command in your DMs!***`); let account: AccountInterface; if (!args[0] || !user.permissions.staff) account = user;