From 81c4a80777af98bd09b78dfd4890b7be443e0a28 Mon Sep 17 00:00:00 2001 From: maamokun/MikanDev Date: Fri, 13 Dec 2024 00:13:26 +0900 Subject: [PATCH] fix: forgot to return + vision coming soon --- src/handlers/flagTranslation.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handlers/flagTranslation.ts b/src/handlers/flagTranslation.ts index b99ddb0..7838a19 100644 --- a/src/handlers/flagTranslation.ts +++ b/src/handlers/flagTranslation.ts @@ -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 { @@ -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.");