From 4ae0ec83daef681877d7d5f3dadf41652a66051c Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:24:32 -0600 Subject: [PATCH] Stop allowing positional arguments besides id for API.get_direct_message --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index bb128ed..9545365 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -491,12 +491,11 @@ class API: ) @payload('direct_message') - def get_direct_message(self, id, *args, **kwargs): + def get_direct_message(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-event """ return self.request( - 'GET', 'direct_messages/events/show', id, *args, - endpoint_parameters=( + 'GET', 'direct_messages/events/show', id, endpoint_parameters=( 'id', ), **kwargs ) -- 2.25.1