add icon support

This commit is contained in:
derpystuff 2023-04-15 15:33:52 +02:00
parent 896ac7d400
commit 26a305ea8b

View file

@ -28,6 +28,7 @@ function createWolframPage(context, pod, query, sources){
})
]
}
if(pod.icon) res.embeds[0].author.iconUrl = pod.icon
if(pod.value) res.embeds[0].description = pod.value
if(pod.value && pod.refs) {
for(const r of pod.refs){