diff --git a/adapters/discord/src/utils.ts b/adapters/discord/src/utils.ts index 1619f973..7f210da8 100644 --- a/adapters/discord/src/utils.ts +++ b/adapters/discord/src/utils.ts @@ -95,6 +95,16 @@ export async function decodeMessage( }) } + if (data.sticker_items) { + message.content += data.sticker_items.map(s => h('sticker', { + id: s.id, + format_type: s.format_type, + name: s.name, + }, [ + h.image(`https://media.discordapp.net/stickers/${s.id}.webp?size=160`), + ])).join('') + } + // embed 的 update event 太阴间了 只有 id embeds channel_id guild_id 四个成员 if (data.attachments?.length) { if (!/\s$/.test(message.content)) message.content += ' '