jointrashposs/assets/js/mi/io-emojis.ts

13 lines
329 B
TypeScript
Raw Normal View History

import { getIOEmoji } from './io-meta';
import * as Misskey from 'misskey-js';
export const customEmojisMap = new Map<string, Misskey.entities.CustomEmoji>();
async function init() {
const emojis = await getIOEmoji();
for (const emoji of emojis.emojis) {
customEmojisMap.set(emoji.name, emoji);
}
}
init();