Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Do you mean the actual type hint in the code or the one that PyCharm extracts from the docstring? The former shouldn't have a problem in v2. If you're still on v1 I recommend using the discord.py stubs by BryanForbes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In source code and doc, the return type of method
Guild.voice_client
isVoiceProtocal
. But the actual return type isVoiceClient
. All examples on the web I can find are treatingGuild.voice_client
asVoiceClient
, but the IDE type hint keeps telling me it'sVoiceProtocal
and doesn't have the methodis_playing
. I'm so confused now. Is it been a typo in the doc or been forgotten between revisions?Beta Was this translation helpful? Give feedback.
All reactions