Michal__d
Michal__d
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
That's not issue with content delivery time. Images from Google CDN also doesn't work. When i use AttachmentBuilder to attach image directly to the embed, is exactly the same problem. Embed source gives correct working url and proxy_url, but width and height is 0
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
yes, the thumbnail always shows up, but is also much smaller I will try with CDN
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
And that not working embed is usually first
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
But i send that in 3 separated messages. Each message is independent because wait for the script that fetch data from the game API Usually there is 15 seconds time difference between that messages
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
I have CDN and i will try it
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
That images has a few kilobytes I am well below the limit of 2GB / month
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
That's odd because images in embeds that always works are from the same GitHub repository just a different folder
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
when i request that embed with slash command, width and height are set correctly. Part of the code to create embed is shared with cron and slash command, Other embeds that works fine are structured the same way. Maybe something is wrong with that images, but it was working fine for over 3 years.
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 11/19/2024 in #djs-questions
Embed image doesn't show since couple of days.
i checked it twice, console.log(JSON.stringify(sentMessage.embeds)) right after bot sent that message, and also fetched message by id, both are identical: (paths are different than in original post because i tested if that's cache issue, but nothing changed)
[
{
"type": "rich",
"thumbnail": {
"width": 256,
"url": "https://raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/collector_icon.png",
"proxy_url": "https://images-ext-1.discordapp.net/external/eQDI24DH2eq9awZwmhmnJc8v0Ytow8JryDWvCpM44rY/https/raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/collector_icon.png",
"height": 256,
"flags": 0
},
"image": {
"width": 0,
"url": "https://raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/mpsw_location_01.png",
"proxy_url": "https://images-ext-1.discordapp.net/external/HQcA1AcQYddcI2yRHffJAVo1-MueTl6PO4PeNoiTfwM/https/raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/mpsw_location_01.png",
"height": 0,
"flags": 0
},
"content_scan_version": 1,
"color": 13369344
}
]
[
{
"type": "rich",
"thumbnail": {
"width": 256,
"url": "https://raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/collector_icon.png",
"proxy_url": "https://images-ext-1.discordapp.net/external/eQDI24DH2eq9awZwmhmnJc8v0Ytow8JryDWvCpM44rY/https/raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/collector_icon.png",
"height": 256,
"flags": 0
},
"image": {
"width": 0,
"url": "https://raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/mpsw_location_01.png",
"proxy_url": "https://images-ext-1.discordapp.net/external/HQcA1AcQYddcI2yRHffJAVo1-MueTl6PO4PeNoiTfwM/https/raw.githubusercontent.com/MichalD96/rdodailies.com-website/master/images/nazar/mpsw_location_01.png",
"height": 0,
"flags": 0
},
"content_scan_version": 1,
"color": 13369344
}
]
11 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 10/21/2022 in #djs-questions
Image outside embed, only when image is a buffer.
i was looking for the issue somewhere else because this still works when i pass the string <a:aPES_Think:493353113332219924>
const attachment = new AttachmentBuilder(path.join(process.cwd(), 'data/chart.jpg'), 'chart.jpg');
const attachment = new AttachmentBuilder(path.join(process.cwd(), 'data/chart.jpg'), 'chart.jpg');
4 replies
DIAdiscord.js - Imagine an app
Created by Michal__d on 10/21/2022 in #djs-questions
Image outside embed, only when image is a buffer.
yes, that worked thank you
4 replies