Skip to content

Commit

Permalink
Add support for ApplicationEmoj
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jan 9, 2025
1 parent 02e86e0 commit 1338d64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/handler/quoteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
type Channel,
type Snowflake,
type GuildTextBasedChannel,
type ApplicationEmoji,
} from "discord.js";

import type { BotContext, QuoteConfig } from "@/context.js";
Expand All @@ -35,7 +36,10 @@ const isChannelAnonymous = async (context: BotContext, channel: Channel) => {
return false;
};

const isQuoteEmoji = (quoteConfig: QuoteConfig, emoji: GuildEmoji | ReactionEmoji) => {
const isQuoteEmoji = (
quoteConfig: QuoteConfig,
emoji: GuildEmoji | ReactionEmoji | ApplicationEmoji,
) => {
return emoji.name === quoteConfig.emojiName;
};

Expand Down

0 comments on commit 1338d64

Please sign in to comment.