From fee475b4099bb7366119bc4cf2743688b96d7934 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 5 May 2020 19:30:04 -0400 Subject: [PATCH] fix typos --- src/commands/listredirects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/listredirects.ts b/src/commands/listredirects.ts index 5dd71de..ed1d17e 100644 --- a/src/commands/listredirects.ts +++ b/src/commands/listredirects.ts @@ -17,7 +17,7 @@ export default class DelRedirect extends Command { try { if (args[0]) { const redirects = await this.client.db.redirect.find({ $or: [{ key: args[0].toLowerCase() }, { to: args[0].toLowerCase() }] }); - if (!redirects) return this.error(message.channel, 'Could not find an entry matching that query.'); + if (redirects.length <= 0) return this.error(message.channel, 'Could not find an entry matching that query.'); const embed = new RichEmbed(); embed.setTitle('Redirect Information'); for (const redirect of redirects) {