mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Change VoiceProtocol user callbacks to be pos-only
This commit is contained in:
@@ -115,7 +115,7 @@ class VoiceProtocol:
|
|||||||
self.client: Client = client
|
self.client: Client = client
|
||||||
self.channel: abc.Connectable = channel
|
self.channel: abc.Connectable = channel
|
||||||
|
|
||||||
async def on_voice_state_update(self, data: GuildVoiceStatePayload) -> None:
|
async def on_voice_state_update(self, data: GuildVoiceStatePayload, /) -> None:
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
An abstract method that is called when the client's voice state
|
An abstract method that is called when the client's voice state
|
||||||
@@ -128,7 +128,7 @@ class VoiceProtocol:
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
async def on_voice_server_update(self, data: VoiceServerUpdatePayload) -> None:
|
async def on_voice_server_update(self, data: VoiceServerUpdatePayload, /) -> None:
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
An abstract method that is called when initially connecting to voice.
|
An abstract method that is called when initially connecting to voice.
|
||||||
|
Reference in New Issue
Block a user