Skip to content

Commit

Permalink
Fix attribute error with deprecated stage discovery (#1107)
Browse files Browse the repository at this point in the history
* Fix attribute error

* Follow typing
  • Loading branch information
Middledot authored Mar 4, 2022
1 parent 9c37624 commit dbf1f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ class ApplicationType(Enum):


class StagePrivacyLevel(Enum):
# public = 1 Deprecated
# public = 1 (deprecated)
closed = 2
guild_only = 2

Expand Down
2 changes: 1 addition & 1 deletion discord/stage_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def channel(self) -> Optional[StageChannel]:
return self._state.get_channel(self.channel_id) # type: ignore

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

async def edit(
self,
Expand Down

0 comments on commit dbf1f6d

Please sign in to comment.