images not in message?
Hello, when i get the messages every message with image is just empty, why is that?
it shows every text message normally but when its an image there is no image link or smth like that, just an empty response
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!How are you getting the message and accessing the image?
im just using message.content for the messages, shouldnt be the image link in there?
Yes, do you have the MessageContent intent?
yes, i did set that in the discord dev opions and the code aswell
its working with text messages, so it is something image related 🤔
Try accessing message.embeds, I think it'd be there if it gets embedded
and its as imagelink there or image directly?
I am not entirely sure, can you log message.embeds and see what it returns?
sure, gimme a sec
it returns js
[
Embed {
data: {
url: 'https://github.com/TunayAdaKaracan/Cloudflare-DDNS',
type: 'article',
title: 'GitHub - TunayAdaKaracan/Cloudflare-DDNS: A small script i made wit...',
thumbnail: [Object],
provider: [Object],
description: 'A small script i made with python. Free to use. Should be easy enough to extend it. Any questions? @kutuptilkisi on discord - GitHub - TunayAdaKaracan/Cloudflare-DDNS: A small script i made with py...',
content_scan_version: 1,
color: 1975079
}
}
]
```
Ah, nice
but image... hm