Update and improve documentation for API.destroy_direct_message
authorHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 11:52:59 +0000 (06:52 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 11:52:59 +0000 (06:52 -0500)
tweepy/api.py

index 8747d129c0d3245e26caa2eacf10bc8703a155b9..2f33b8c7516ac57ad3b20d83635952c1d5746392 100644 (file)
@@ -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=(