[Translate] Fix an error when reactions are enabled and no message could be translated

This commit is contained in:
TrustyJAID committed 2025-02-02 12:36:20 -07:00
1 parent aeeea4388d
commit cf30fefa2d
1 file changed
+1 -1
+1 -1
View File
@@ -595,7 +595,7 @@ class GoogleTranslateAPI:
msgs = await self.translate_message(
message, to_lang=None, flag=str(payload.emoji), reacted_user=reacted_user
)
if msgs is None:
if not msgs:
log.debug("The translation failed")
return
channel = message.channel