diff --git a/commands/message/utils/emoji.js b/commands/message/utils/emoji.js index 4b936ac..cdcb1ff 100644 --- a/commands/message/utils/emoji.js +++ b/commands/message/utils/emoji.js @@ -175,6 +175,11 @@ module.exports = { const emojiAsset = platformEmoji.images.filter((p)=>{ return p.id == ctx.data.values[0] }) + + // this sucks but works, ensures the newly selected option stays selected + for (let i = 0; i < components.components[0].components[0].options.length; i++) { + components.components[0].components[0].options[i].default = (components.components[0].components[0].options[i].value == ctx.data.values[0]) + } currentView = createEmbed("default", context, { author: { @@ -199,7 +204,7 @@ module.exports = { return { label: r.version, value: r.id, - default: (r.id == res.data.latest) + default: (r.id == res.data.platforms[args.type].images[0].id) } }) diff --git a/labscore/constants.js b/labscore/constants.js index 727bb63..00c91c8 100644 --- a/labscore/constants.js +++ b/labscore/constants.js @@ -726,7 +726,7 @@ module.exports.EMOJIPEDIA_PLATFORM_TYPES = [ ] module.exports.EMOJIPEDIA_PLATFORM_TYPE_ALIASES = { - "fluent": "microsoft-teams", + "fluent": "microsoft-3D-fluent", "twemoji": "twitter", "playstation": "sony", "ios": "apple",