mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
add line about where an emoji is from
This commit is contained in:
parent
ad6f915427
commit
0a3c5ebb5e
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,7 @@ const { icon, pill, iconPill, highlight } = require("../../../labscore/utils/mar
|
|||
const { editOrReply } = require("../../../labscore/utils/message");
|
||||
const { STATICS } = require("../../../labscore/utils/statics");
|
||||
const { Components } = require("detritus-client/lib/utils");
|
||||
const { bold } = require("detritus-client/lib/utils/markup");
|
||||
|
||||
const onlyEmoji = require('emoji-aware').onlyEmoji;
|
||||
|
||||
|
@ -78,8 +79,11 @@ module.exports = {
|
|||
let form = '.png'
|
||||
if(matches[0].animated) form = '.gif'
|
||||
|
||||
const tagline = ''
|
||||
if(context.guild.emojis.find((e)=>e.id == matches[0].id)) tagline == `\nThis emoji is from ${bold(context.guild.name)}`
|
||||
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
description: `${iconPill("emoji", `:${matches[0].name}:`)} ${highlight(`(${matches[0].id})`)}`,
|
||||
description: `${iconPill("emoji", `:${matches[0].name}:`)} ${highlight(`(${matches[0].id})`)}${tagline}`,
|
||||
image: {
|
||||
url: `https://cdn.discordapp.com/emojis/${matches[0].id}${form}?size=4096`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue