Skip to content

Commit

Permalink
fix: forgot to return + vision coming soon
Browse files Browse the repository at this point in the history
  • Loading branch information
maamokun committed Dec 12, 2024
1 parent 9fe92c8 commit 81c4a80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handlers/flagTranslation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Translate } from "@google-cloud/translate/build/src/v2";
import { ImageAnnotatorClient } from "@google-cloud/vision";
import { emojiCountryCode } from "country-code-emoji";
import { MessageReaction, Message, User, EmbedBuilder } from "discord.js";
import {
Expand Down Expand Up @@ -38,6 +39,7 @@ export async function translateMessage(reaction: MessageReaction, user: User) {
"MikanBot",
"You are being ratelimited! Please wait a bit before translating another message. You can speed this up by becoming a premium user.",
);
return;
}
if (!message.content) {
console.error("Message content is empty or undefined.");
Expand Down

0 comments on commit 81c4a80

Please sign in to comment.