Skip to content
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: type hint Sink.vc #919

Merged
merged 5 commits into from
Feb 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions discord/sinks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import time
import io
from ..types import snowflake
from ..channel import VoiceChannel

from .errors import SinkException
VincentRPS marked this conversation as resolved.
Show resolved Hide resolved

Expand Down Expand Up @@ -179,11 +180,11 @@ def __init__(self, *, filters=None):
filters = default_filters
self.filters = filters
Filters.__init__(self, **self.filters)
self.vc = None
self.vc: VoiceChannel = None
self.audio_data = {}

def init(self, vc): # called under listen
self.vc = vc
self.vc: VoiceChannel = vc
super().init()

@Filters.container
Expand Down