@ -42,7 +42,7 @@ class TranslationCommand extends Command {
returnresponse.json();
returnresponse.json();
}).then((response)=>{
}).then((response)=>{
if(response.code=='502')
if(response.code=='502')
returnmessage.channel.send(`${response.message}, you probably didin't input the correct language code, you can check them here! https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/`);
returnmessage.channel.send(`${response.message}, you probably didn't input the correct language code, you can check them here! https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/`);
elseif(response.code!='200')
elseif(response.code!='200')
returnmessage.channel.send('An error has occured');
returnmessage.channel.send('An error has occured');