Skip to content

Commit

Permalink
fix emote resolving (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Jul 19, 2024
1 parent 09433a2 commit e908d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/service/emoteLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export async function processReactionAdd(reactionEvent: MessageReaction, _contex
export async function processMessage(message: ProcessableMessage, context: BotContext) {
const emotes = emoteService.extractEmotesFromMessage(message.content);
for (const emote of emotes) {
const resolvedEmote = context.client.emojis.cache.get(emote.id);
const resolvedEmote =
context.client.emojis.cache.get(emote.id) || context.client.emojis.resolveId(emote.id);
if (!resolvedEmote) {
log.warn({ emote }, "Could not resolve emote");
continue;
Expand Down

0 comments on commit e908d6c

Please sign in to comment.