This commit is contained in:
Dragon Fire
2021-04-23 23:24:57 -04:00
parent c631e5629b
commit 9419f83868
+1
View File
@@ -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);
}
};