Browse Source
Add type: ignore for StageInstance.channel
pull/7440/head
Stocker
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
discord/stage_instance.py
|
|
@ -106,7 +106,8 @@ class StageInstance(Hashable): |
|
|
|
@cached_slot_property('_cs_channel') |
|
|
|
def channel(self) -> Optional[StageChannel]: |
|
|
|
"""Optional[:class:`StageChannel`]: The channel that stage instance is running in.""" |
|
|
|
return self._state.get_channel(self.channel_id) |
|
|
|
# the returned channel will always be a StageChannel or None |
|
|
|
return self._state.get_channel(self.channel_id) # type: ignore |
|
|
|
|
|
|
|
def is_public(self) -> bool: |
|
|
|
return self.privacy_level is StagePrivacyLevel.public |
|
|
|