mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
allow language as main content
This commit is contained in:
parent
83c0e6944b
commit
e9e62ffe92
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ module.exports = {
|
|||
let msg = await context.message.channel.fetchMessage(context.message.messageReference.messageId);
|
||||
if(msg.content && msg.content.length) content = msg.content
|
||||
else if(msg.embeds?.length) for(const e of msg.embeds) if(e[1].description?.length) { content = e[1].description; break; }
|
||||
|
||||
// Translate using direct language input
|
||||
args.to = args.text;
|
||||
}
|
||||
|
||||
if(!content.length) return editOrReply(context, createEmbed("warning", context, "No text supplied."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue