mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
Beep
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = class TranslateCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setAuthor('Yandex.Translate', 'https://i.imgur.com/HMpH9sq.png')
|
||||
.setColor(0xFF0000)
|
||||
.setURL(`https://translate.yandex.com/?lang=${body.lang}&text=${text}`)
|
||||
.setURL(`https://translate.yandex.com/?lang=${body.lang}&text=${encodeURIComponent(text)}`)
|
||||
.addField(`❯ From: ${codes[lang[0]]}`,
|
||||
text)
|
||||
.addField(`❯ To: ${codes[lang[1]]}`,
|
||||
|
||||
Reference in New Issue
Block a user