In preparation for msgspec, we need to get rid of entity helpers like get_x or fetch_x, always ensuring that we have suitable alternatives.
dm_user
First case that comes to mind when thinking about this is messaging users. The flow usually goes:
- Getting or fetching the dm channel
- Sending a message to that user.
A dm_user function could merge those into a single call for the user. We can also leverage the cache to check for known dm channels that are created (create_dm_channel already does this) and avoid 2 API calls.
In preparation for msgspec, we need to get rid of entity helpers like
get_xorfetch_x, always ensuring that we have suitable alternatives.dm_userFirst case that comes to mind when thinking about this is messaging users. The flow usually goes:
A
dm_userfunction could merge those into a single call for the user. We can also leverage the cache to check for known dm channels that are created (create_dm_channelalready does this) and avoid 2 API calls.