From: Harmon Date: Wed, 10 Feb 2021 19:30:44 +0000 (-0600) Subject: Require id parameter for API.destroy_direct_message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bcb56abce37d4252080fca6df796b7fc3dd2ae76;p=tweepy.git Require id parameter for API.destroy_direct_message --- diff --git a/tweepy/api.py b/tweepy/api.py index de7d6da..f5e8b43 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -543,11 +543,11 @@ class API: json_payload=json_payload, **kwargs ) - def destroy_direct_message(self, *args, **kwargs): + def destroy_direct_message(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/delete-message-event """ return self.request( - 'DELETE', 'direct_messages/events/destroy', *args, + 'DELETE', 'direct_messages/events/destroy', id, *args, endpoint_parameters=( 'id', ), **kwargs