diff --git a/commands/interaction/slash/utils/dictionary.js b/commands/interaction/slash/utils/dictionary.js index e129073..e5a1afe 100644 --- a/commands/interaction/slash/utils/dictionary.js +++ b/commands/interaction/slash/utils/dictionary.js @@ -52,7 +52,7 @@ function renderDictionaryEntry(context, result, definition, language) { if(defs.length > 5){ defs = defs.splice(0, 5); - defs.push(`${link("https://www.google.com/search?q=define+${encodeURIComponent(result.word)}", `More Definitions ${icon("open_in_new")}`)}`) + defs.push(link(`https://www.google.com/search?q=define+${encodeURIComponent(result.word)}`, `More Definitions ${icon("open_in_new")}`)) } card.description += defs.join("\n\n") diff --git a/commands/message/utils/dictionary.js b/commands/message/utils/dictionary.js index b9be074..b59f6fc 100644 --- a/commands/message/utils/dictionary.js +++ b/commands/message/utils/dictionary.js @@ -51,7 +51,7 @@ function renderDictionaryEntry(context, result, definition, language) { if(defs.length > 5){ defs = defs.splice(0, 5); - defs.push(`${link("https://www.google.com/search?q=define+${encodeURIComponent(result.word)}", `More Definitions ${icon("open_in_new")}`)}`) + defs.push(link(`https://www.google.com/search?q=define+${encodeURIComponent(result.word)}`, `More Definitions ${icon("open_in_new")}`)) } card.description += defs.join("\n\n") @@ -61,7 +61,7 @@ function renderDictionaryEntry(context, result, definition, language) { module.exports = { name: 'dictionary', label: 'query', - aliases: ['define', 'dict', 'definition'], + aliases: ['define', 'dict', 'definition', 'def', 'd'], metadata: { description: 'Looks up words and teminology in a dictionary.', description_short: 'Dictionary word definitions.',