mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Translate Bug Fix
This commit is contained in:
@@ -32,7 +32,7 @@ class TranslateCommand extends commando.Command {
|
||||
message.channel.sendMessage(":x: Error! Please keep translations below 200 characters!");
|
||||
} else {
|
||||
translate(messagecontent, {to: languageto}).then(res => {
|
||||
let languagefrom = res.from.language.iso;
|
||||
let languagefrom = res.from.language.iso.toLowerCase();
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.addField('Input (From: ' + languages.entries[languagefrom] + '):',
|
||||
|
||||
Reference in New Issue
Block a user