mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
change emoji icon behaviour
This commit is contained in:
parent
d9c1978d8c
commit
788f4deb5b
1 changed files with 5 additions and 1 deletions
|
@ -123,9 +123,13 @@ module.exports = {
|
||||||
return await editOrReply(context, embed)
|
return await editOrReply(context, embed)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use the high-res emojipedia icon, if available
|
||||||
|
let ico = `https://abs.twimg.com/emoji/v2/72x72/${toCodePoint(emoji[0])}.png`
|
||||||
|
if(res.data.vendor_images["twitter"]) ico = res.data.vendor_images["twitter"]
|
||||||
|
|
||||||
return editOrReply(context, createEmbed("default", context, {
|
return editOrReply(context, createEmbed("default", context, {
|
||||||
author: {
|
author: {
|
||||||
iconUrl: `https://abs.twimg.com/emoji/v2/72x72/${toCodePoint(emoji[0])}.png`,
|
iconUrl: ico,
|
||||||
name: res.data.name,
|
name: res.data.name,
|
||||||
url: res.data.permalink
|
url: res.data.permalink
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue