From: Harmon Date: Wed, 10 Feb 2021 19:25:43 +0000 (-0600) Subject: Stop allowing positional arguments for API.list_direct_messages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8e0507dd1456a42e8c4258bed37295e1116c1bd9;p=tweepy.git Stop allowing positional arguments for API.list_direct_messages --- diff --git a/tweepy/api.py b/tweepy/api.py index 9545365..213c989 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -502,11 +502,11 @@ class API: @pagination(mode='dm_cursor') @payload('direct_message', list=True) - def list_direct_messages(self, *args, **kwargs): + def list_direct_messages(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/list-events """ return self.request( - 'GET', 'direct_messages/events/list', *args, endpoint_parameters=( + 'GET', 'direct_messages/events/list', endpoint_parameters=( 'count', 'cursor' ), **kwargs )