1
0
Fork 0

matthew u shouldnt copy/paste

refactor/models
Matthew 2019-10-30 21:29:08 -04:00
parent 74bdfacee1
commit a4e9693292
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export default class Whois extends Command {
public async run(message: Message, args: string[]) {
try {
if (!args[1]) return this.client.commands.get('help').run(message, [this.name]);
if (!args[0]) return this.client.commands.get('help').run(message, [this.name]);
const account = await this.client.db.Account.findOne({ $or: [{ username: args[0] }, { userID: args[0] }, { emailAddress: args[0] }] });
if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Account not found.***`);
const embed = new RichEmbed();