Skip to content

Commit dbf1f6d

Browse files
authored
Fix attribute error with deprecated stage discovery (#1107)
* Fix attribute error * Follow typing
1 parent 9c37624 commit dbf1f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

discord/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ class ApplicationType(Enum):
615615

616616

617617
class StagePrivacyLevel(Enum):
618-
# public = 1 Deprecated
618+
# public = 1 (deprecated)
619619
closed = 2
620620
guild_only = 2
621621

discord/stage_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def channel(self) -> Optional[StageChannel]:
109109
return self._state.get_channel(self.channel_id) # type: ignore
110110

111111
def is_public(self) -> bool:
112-
return self.privacy_level is StagePrivacyLevel.public
112+
return False
113113

114114
async def edit(
115115
self,

0 commit comments

Comments
 (0)