From 46c99ef7bf14a1042501cb685c08bb3619b39744 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 19 May 2020 17:49:24 -0400 Subject: [PATCH] Apply suggestion to src/commands/djs.ts --- src/commands/djs.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/djs.ts b/src/commands/djs.ts index 250fa95..405e0ac 100644 --- a/src/commands/djs.ts +++ b/src/commands/djs.ts @@ -21,8 +21,7 @@ export default class DJS extends Command { try { res = await axios.get(`https://djsdocs.sorta.moe/v2/embed?src=master&q=${args[0]}`); } catch (err) { - this.error(message.channel, 'Please try again later, something unexpected happened.'); - return this.client.util.handleError(err, message, this); + return this.error(message.channel, 'Please try again later, something unexpected happened.'); } if (!res.data) return this.error(message.channel, 'Could not find information. Try something else.');