@ -46,8 +46,13 @@ class translateCommand extends Command {
}).then((response)=>{
}).then((response)=>{
if(response.code=='502')
if(response.code=='502')
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/`);
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=='408')
returnmessage.channel.send(response.message);
elseif(response.code!='200'){
console.error(response);
returnmessage.channel.send('An error has occurred');
returnmessage.channel.send('An error has occurred');