mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
changes relating to default emoji
This commit is contained in:
parent
d8c86959f5
commit
f49bd95116
4 changed files with 34 additions and 38 deletions
|
@ -133,7 +133,7 @@ module.exports = {
|
|||
|
||||
if(Object.keys(res.data.platforms).length === 0) return await editOrReply(context, createEmbed("error", context, "No images available for this emoji."));
|
||||
|
||||
let currentPlatform = "twitter";
|
||||
let currentPlatform = "discord";
|
||||
|
||||
if(!res.data.platforms[currentPlatform]) currentPlatform = Object.keys(res.data.platforms)[0]
|
||||
else currentPlatform = "twitter"
|
||||
|
@ -141,9 +141,11 @@ module.exports = {
|
|||
// Use the high-res emojipedia icon, if available
|
||||
let ico = `https://raw.githubusercontent.com/jdecked/twemoji/main/assets/72x72/${toCodePoint(emoji[0])}.png`
|
||||
if(res.data.platforms["twitter"]) ico = res.data.platforms["twitter"].images[0].src
|
||||
if(res.data.platforms["discord"]) ico = res.data.platforms["discord"].images[0].src
|
||||
|
||||
const DEFAULT_PLATFORM = currentPlatform
|
||||
|
||||
|
||||
let currentView;
|
||||
let currentRevision = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue