language support for translate

This commit is contained in:
derpystuff 2023-11-04 01:04:38 +01:00
parent db8de1c6f9
commit 3cea3331da
4 changed files with 77 additions and 10 deletions

View file

@ -291,9 +291,10 @@ module.exports.tiktok = async function(context, text, voice){
})
}
module.exports.dictionary = async function(context, query){
module.exports.dictionary = async function(context, query, language){
return await request(Api.UTILS_DICTIONARY, "GET", {}, {
q: query
q: query,
l: language
})
}