Change VoiceProtocol user callbacks to be pos-only

This commit is contained in:
Jakub Kuczys 2022-09-16 01:30:43 +02:00 committed by GitHub
parent c854ee2978
commit b5dc9e54a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ class VoiceProtocol:
self.client: Client = client
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|
An abstract method that is called when the client's voice state
@ -128,7 +128,7 @@ class VoiceProtocol:
"""
raise NotImplementedError
async def on_voice_server_update(self, data: VoiceServerUpdatePayload) -> None:
async def on_voice_server_update(self, data: VoiceServerUpdatePayload, /) -> None:
"""|coro|
An abstract method that is called when initially connecting to voice.