dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
651 stars 154 forks source link

Allow for option to turn message into JSON #585

Closed wa1ker38552 closed 6 months ago

wa1ker38552 commented 9 months ago

Allows users to represent their Message object as json instead. This could be helpful when working with client side scripts since you don't need to manually create a new dictionary and extract values from the object before sending. You could just directly send the Message.json dictionary instead.

dolfies commented 6 months ago

This is a waste of memory; providing dictionary representations of Discord models is not in the scope of this library.

dolfies commented 6 months ago

@wa1ker38552 While I don't really recommend this, you can use underlying HTTP methods in client.http to get raw models if you really need to.