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

Fix for Deleting Messages #39

Open
jdulb17 opened this issue Apr 23, 2017 · 0 comments
Open

Fix for Deleting Messages #39

jdulb17 opened this issue Apr 23, 2017 · 0 comments

Comments

@jdulb17
Copy link

jdulb17 commented Apr 23, 2017

I apologize for posting this as an issue as opposed to something else (I just recently started using Github more, so I'm still trying to understand Pull Requests/etc.). I have been trying to figure out how to make the delete function work for the messages. I found a simple fix that seems to work so far:
In the __messages_post & delete function in the Voice.py file, I removed the if isinstance(msg, Message): statement. Then, instead of calling the delete function as defined previously: voice.delete(msg) , I now call it as follows: voice.delete(msg["id"]) . This seems to work for me for deleting messages, so I figured I would pass it along to anyone struggling with this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant