fix typos
parent
d5d772d094
commit
fee475b409
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue