diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 0ea66cb49a..4807fcdfbf 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -2178,7 +2178,7 @@ export default class Misskey implements MegalodonInterface { public async getInstanceCustomEmojis(): Promise>> { return this.client .get<{ emojis: Array }>('/api/emojis') - .then(res => ({ ...res, data: res.data.emojis.map(e => MisskeyAPI.Converter.emoji(e)) })) + .then(res => ({ ...res, data: res.data.emojis && res.data.emojis.length > 0 ? res.data.emojis.map(e => MisskeyAPI.Converter.emoji(e)) : [] })) } // ======================================