Skip to content

Commit

Permalink
fix: emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
maamokun committed Dec 12, 2024
1 parent 48b186a commit 1cbf153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/flagTranslation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ export async function translateMessage(reaction: MessageReaction, user: User) {
console.error("Message content is empty or undefined.");
return;
}
message.react("🔄");
message.react("<a:loading:1272805571585642506>");
if (message.attachments.size > 0) {
if (message.attachments.first()?.contentType?.startsWith("image")) {
message.react("<:caughtin4k:1275020056543236158>");
message.react("<:camera:1316791863172268132>");
const attachment = message.attachments.first();
if (!attachment) return;
const visionResult = await vision.annotateImage({
Expand Down

0 comments on commit 1cbf153

Please sign in to comment.