merge-requests/1/merge
Bsian 2019-11-17 01:42:47 +00:00
parent 020d530451
commit 3ec1e03e27
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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;