Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API.get_direct_messages() not working #1601

Closed
jaimindp opened this issue Jun 3, 2021 · 2 comments
Closed

API.get_direct_messages() not working #1601

jaimindp opened this issue Jun 3, 2021 · 2 comments
Labels
Invalid This is not valid

Comments

@jaimindp
Copy link

jaimindp commented Jun 3, 2021

I would like to read my direct messages however the call API.get_direct_messages() returns:


AttributeError Traceback (most recent call last)
in
----> 2 API.get_direct_messages()

AttributeError: 'API' object has no attribute 'get_direct_messages'

My permissions are correct as I can send messages to other users. Any ideas of why this might be?

Thanks in advance

@jaimindp
Copy link
Author

jaimindp commented Jun 3, 2021

My bad, I was looking at old documentation. API.list_direct_messages() is working

@jaimindp jaimindp closed this as completed Jun 3, 2021
@Harmon758
Copy link
Member

API.list_direct_messages was actually renamed to API.get_direct_messages with ff1186f, and the latest documentation is up to date with that change. API.get_direct_messages should work with the development version on the master branch, and any documentation with API.list_direct_messages would be the "old documentation".

@Harmon758 Harmon758 added the Invalid This is not valid label Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invalid This is not valid
Projects
None yet
Development

No branches or pull requests

2 participants