mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
add url support to summaries
This commit is contained in:
parent
73e9d6a914
commit
9e5e550420
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ 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; }
|
||||
else if(msg.embeds?.length) for(const e of msg.embeds){
|
||||
if(e[1].description?.length) content = e[1].description;
|
||||
if(e[1].author?.url) content = e[1].author?.url;
|
||||
if(e[1].url) content = e[1].url
|
||||
}
|
||||
}
|
||||
|
||||
let webUrl = content.match(URL_REGEX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue