mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fixes tldr on pages without page_metadata field
This commit is contained in:
parent
de373c55e7
commit
08109bd37b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(res.response.body.page_metadata.thumbnail) responseEmbed.thumbnail = { url: res.response.body.page_metadata.thumbnail }
|
if(res.response.body.page_metadata?.thumbnail) responseEmbed.thumbnail = { url: res.response.body.page_metadata.thumbnail }
|
||||||
|
|
||||||
return editOrReply(context, responseEmbed)
|
return editOrReply(context, responseEmbed)
|
||||||
}catch(e){
|
}catch(e){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue