diff --git a/src/commands/npm.ts b/src/commands/npm.ts index 98a489f..fae9cff 100644 --- a/src/commands/npm.ts +++ b/src/commands/npm.ts @@ -19,7 +19,7 @@ export default class NPM extends Command { const res = await axios.get(`https://registry.npmjs.com/${args[0]}`, { validateStatus: (_) => true }); - if (res.status === 404) this.error(message.channel, 'Could not find the library, try something else.'); + if (res.status === 404) return this.error(message.channel, 'Could not find the library, try something else.'); const { data } = res;