From: Harmon Date: Thu, 27 May 2021 11:52:59 +0000 (-0500) Subject: Update and improve documentation for API.destroy_direct_message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4e1b7198499476e5227ca48fc9b0e7fd18aec102;p=tweepy.git Update and improve documentation for API.destroy_direct_message --- diff --git a/tweepy/api.py b/tweepy/api.py index 8747d12..2f33b8c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3160,11 +3160,14 @@ class API: user context provided. Other members of the conversation can still access the Direct Messages. - :param id: The ID of the Direct Message that should be deleted. - - :rtype: None + Parameters + ---------- + id + The ID of the Direct Message that should be deleted. - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/delete-message-event + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/delete-message-event """ return self.request( 'DELETE', 'direct_messages/events/destroy', endpoint_parameters=(