finish new design for the remaining commands

This commit is contained in:
derpystuff 2023-03-18 14:41:35 +01:00
parent 37a6c40d30
commit e89c0e9aad
6 changed files with 15 additions and 7 deletions

View file

@ -1,5 +1,5 @@
const { createEmbed, formatPaginationEmbeds } = require('../../../labscore/utils/embed')
const { link } = require('../../../labscore/utils/markdown')
const { link, pill, iconPill } = require('../../../labscore/utils/markdown')
const { editOrReply } = require('../../../labscore/utils/message')
const { paginator } = require('../../../labscore/client');
@ -19,8 +19,8 @@ function createDictionaryPage(context, result){
for(const d of result.definitions){
let v = d.definition
if(d.example) v = v + `\n\n**Example**\n${d.example}`
if(d.synonyms.length >= 1) v = v + `\n\n**Synonyms**\n*${d.synonyms.join(', ')}*`
if(d.example) v = v + `\n\n${iconPill("pencil", "Example")}\n> ${d.example}`
if(d.synonyms.length >= 1) v = v + `\n\n${iconPill("message", "Synonyms")}\n> *${d.synonyms.join(', ')}*`
e.fields.push({
name: d.type,
value: v,