-
Notifications
You must be signed in to change notification settings - Fork 137
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
feat(member): implement new voice states endpoints #1217
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far, thanks c:
Updating the cache is definitely a cool idea, though it conflicts with the part you mentioned -
Also in
Member.fetch_voice_state
i'm currently propagating theNotFound
error, maybe we could catch it and returnNone
?
Propagating the NotFound
error is the right move, but it does mean voice states added to the cache this way would never get removed again (assuming no voice state intent, since the fetch method is pointless if enabled).
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Snipy7374 <[email protected]>
Summary
I did not implement
Get Current User Voice State % GET /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/voice-states/@me
because you can get the bot's voice state by doingGuild.me.fetch_voice_state
using the common endpoint, let me know if i should implement the other too. Also inMember.fetch_voice_state
i'm currently propagating theNotFound
error, maybe we could catch it and returnNone
?Checklist
pdm lint
pdm pyright