How to check if message is media

How to check if message is media

you would have to send a custom network request to discord to get the message data, then you could read the attachments