mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Bug Fix
This commit is contained in:
@@ -39,9 +39,9 @@ module.exports = class ThesaurusCommand extends Command {
|
|||||||
.setColor(0x9797FF)
|
.setColor(0x9797FF)
|
||||||
.setTitle(query)
|
.setTitle(query)
|
||||||
.addField('> Synonyms',
|
.addField('> Synonyms',
|
||||||
synonyms.words ? synonyms.words.join(', ') : 'N/A')
|
synonyms ? synonyms.words.join(', ') : 'N/A')
|
||||||
.addField('> Antonyms',
|
.addField('> Antonyms',
|
||||||
antonyms.words ? antonyms.words.join(', ') : 'N/A');
|
antonyms ? antonyms.words.join(', ') : 'N/A');
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user