'use strict'; const commando = require("@iceprod/discord.js-commando"); const { default: axios } = require("axios"); const { Message } = require("discord.js"); const { trySend, getChannelMessage, defaultImageEmbed } = require("../../resources/functions"); const SPLG = [ "en", "ar", "zh", "fr", "de", "hi", "id", "ga", "it", "ja", "ko", "pl", "pt", "ru", "es", "tr", "vi" ], REG = /(?"); } const res = await axios.post("https://translate.mentality.rip/translate", { q: trans, source: "auto", target: tar }).then(r => { console.log(r.data); return r.data.translatedText; }).catch(console.error); return trySend(msg.client, msg, res); } };