mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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 { editOrReply } = require("../../../labscore/utils/message");
|
||||||
const { STATICS } = require("../../../labscore/utils/statics");
|
const { STATICS } = require("../../../labscore/utils/statics");
|
||||||
const { Components } = require("detritus-client/lib/utils");
|
const { Components } = require("detritus-client/lib/utils");
|
||||||
|
const { bold } = require("detritus-client/lib/utils/markup");
|
||||||
|
|
||||||
const onlyEmoji = require('emoji-aware').onlyEmoji;
|
const onlyEmoji = require('emoji-aware').onlyEmoji;
|
||||||
|
|
||||||
|
@ -78,8 +79,11 @@ module.exports = {
|
||||||
let form = '.png'
|
let form = '.png'
|
||||||
if(matches[0].animated) form = '.gif'
|
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, {
|
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: {
|
image: {
|
||||||
url: `https://cdn.discordapp.com/emojis/${matches[0].id}${form}?size=4096`
|
url: `https://cdn.discordapp.com/emojis/${matches[0].id}${form}?size=4096`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue