mirror of
https://github.com/RustyRaptor/Trusty-cogs.git
synced 2026-12-03 15:55:21 -07:00
[Translate] Fix an error when reactions are enabled and no message could be translated
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user