Added support for delete direct_messages/events/destroy endpoint
This commit is contained in:
parent
a8a0777f72
commit
96dd5b2897
1 changed files with 2 additions and 2 deletions
|
|
@ -329,10 +329,10 @@ class EndpointsMixin(object):
|
|||
"""Destroys the direct message specified in the required ``id`` parameter
|
||||
|
||||
Docs:
|
||||
https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/delete-message
|
||||
https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/delete-message-event
|
||||
|
||||
"""
|
||||
return self.post('direct_messages/destroy', params=params)
|
||||
return self.delete('direct_messages/events/destroy', params=params)
|
||||
|
||||
def send_direct_message(self, **params):
|
||||
"""Sends a new direct message to the specified user from the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue