You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 theif 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!The text was updated successfully, but these errors were encountered: