From 4e1b7198499476e5227ca48fc9b0e7fd18aec102 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 06:52:59 -0500 Subject: [PATCH] Update and improve documentation for API.destroy_direct_message --- tweepy/api.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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=( -- 2.25.1