Is it possible to access a raw message? If not, why? #6303
Answered
by
Werseter
UnFefeSauvage
asked this question in
Q&A
Replies: 5 comments 6 replies
-
I'm not really sure what this is asking. What would a 'raw' message entail? The Discord API has no such concept -- it is a library only concept that denotes it's a lower level API. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Wouldn't `on_socket_raw_receive` contain the aforementioned JSON (parsable to dict)? It might be an overkill and not be exactly practical way to access the referenced ID, but it is not exactly impossible, right?
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
UnFefeSauvage
-
Oh my mails have not fetched yet and I didn't see the appropriate, already existing reply. But still, regarding the dict, it is still something to perhaps have stashed somewhere it the back of your mind.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, of a parsable JSON? Am I remembering wrongly? Please do correct me if I'm wrong, I believe I did mention it offering a JSON, not a dict per se.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Alright then, perhaps I did remember it wrongly then. I do recall printing out the parsed results from it a few years back though, and I've thought it was in a JSON format. I am sorry for causing some confusion here.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to access the message answered by another (the new Discord feature) and I realized it wasn't handled by discord.py yet.It is, in fact accessible under Message.reference, thank you Rapptz.
It is handled by the Discord API though so I tried to access the raw message to do it manually: I didn't find any way to access it.
So: is there a way to access the raw version of a message?
I've seen several "raw" fields in the message class, why isn't there the full raw message?
Beta Was this translation helpful? Give feedback.
All reactions