You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 404 response is due to the erroneous endpoint definition. In the EndpointsMixin.send_direct_message the URL is defined as direct_messages/new it should be direct_messages/events/new. Unfortunately, this is not enough. The example given in the SO answer linked above is not working because of the _transparent_params helper function. We can't pass the whole event dict to the post method:
I'm trying to send DM with this it's returning 404 sorry page not exist.
here's what I tried
api.send_direct_message(type='message_create', recipient_id="id", message_data="test message"))
The text was updated successfully, but these errors were encountered: