Apply suggestion to src/commands/djs.ts

merge-requests/12/head
Bsian 2020-05-19 17:49:24 -04:00
parent ed9a937155
commit 46c99ef7bf
1 changed files with 1 additions and 2 deletions

View File

@ -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.');