mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
add back ID display for emoji
This commit is contained in:
parent
0125663079
commit
4ab839cf4e
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ module.exports = {
|
|||
let sprites = entries.splice(0, 4);
|
||||
let embeds = [];
|
||||
for(const s of sprites){
|
||||
let fields = sprites.map((s)=>{return {inline: true,name:`\\:${s.name}\\:`,value:`-# Created ${timestamp(Snowflake.timestamp(s.id),"R")}${context.guild.emojis.find((e)=>e.id == matches[0].id) ? "\n-# Custom emoji is from this server" : ""}`}});
|
||||
let fields = sprites.map((s)=>{return {inline: true,name:`\\:${s.name}\\:`,value:`-# ID: ${s.id}\n-# Created ${timestamp(Snowflake.timestamp(s.id),"R")}${context.guild.emojis.find((e)=>e.id == matches[0].id) ? "\n-# Custom emoji is from this server" : ""}`}});
|
||||
if(fields.length >= 3){
|
||||
fields.splice(2,0,{name:` `, value:` `, inline:true})
|
||||
if(fields.length == 5) fields.push({name:` `, value:` `, inline:true})
|
||||
|
|
|
@ -104,7 +104,7 @@ module.exports = {
|
|||
let sprites = entries.splice(0, 4);
|
||||
let embeds = [];
|
||||
for(const s of sprites){
|
||||
let fields = sprites.map((s)=>{return {inline: true,name:`\\:${s.name}\\:`,value:`-# Created ${timestamp(Snowflake.timestamp(s.id),"R")}${context.guild.emojis.find((e)=>e.id == matches[0].id) ? "\n-# Custom emoji is from this server" : ""}`}});
|
||||
let fields = sprites.map((s)=>{return {inline: true,name:`\\:${s.name}\\:`,value:`-# ID: ${s.id}\n-# Created ${timestamp(Snowflake.timestamp(s.id),"R")}${context.guild.emojis.find((e)=>e.id == matches[0].id) ? "\n-# Custom emoji is from this server" : ""}`}});
|
||||
if(fields.length >= 3){
|
||||
fields.splice(2,0,{name:` `, value:` `, inline:true})
|
||||
if(fields.length == 5) fields.push({name:` `, value:` `, inline:true})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue