@ -22,40 +22,40 @@ class TranslationCommand extends Command {
}
}
],
],
description:{
description:{
content:'Translate what you send in your desired language. You can find the language code here: https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/',
content:'Translate what you send in your desired language. You can find the language code here: https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/',
usage:'[language code] [Text to translate]',
usage:'[language code] [Text to translate]',
examples:['fr What are we doing today?','en Que faisons-nous aujourd\'hui?']
examples:['fr What are we doing today?','en Que faisons-nous aujourd\'hui?']
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 didin'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')