From 9419f83868238d6e360afb17e2c93e38d473c5ba Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 23 Apr 2021 23:24:57 -0400 Subject: [PATCH] Fix --- commands/search/docs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/search/docs.js b/commands/search/docs.js index d1e9557c..cdae98d1 100644 --- a/commands/search/docs.js +++ b/commands/search/docs.js @@ -23,6 +23,7 @@ module.exports = class DocstCommand extends Command { async run(msg, { query }) { const doc = await Docs.fetch('stable'); const embed = doc.resolveEmbed(query); + if (!embed) return msg.say('Could not find any results.'); return msg.embed(embed); } };