diff --git a/commands/search/define.js b/commands/search/define.js index 3a0cb9db..e88fffe7 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -35,6 +35,7 @@ module.exports = class DefineCommand extends Command { .query({ key: WEBSTER_KEY }); if (!body.length) return msg.say('Could not find any results.'); const data = body[0]; + if (typeof data === 'string') return msg.say(`Could not find any results. Did you mean **${data}**?`); return msg.say(stripIndents` **${data.meta.stems[0]}** (${data.fl}) ${data.shortdef.map((definition, i) => `(${i + 1}) ${definition}`).join('\n')} diff --git a/package.json b/package.json index ef5d37a1..8a82c821 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "107.3.0", + "version": "107.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {