diff options
| author | Rapptz <[email protected]> | 2021-07-28 20:02:45 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-28 20:02:45 -0400 |
| commit | 13251da8ce7a5567005338d7e617cb667596512d (patch) | |
| tree | 0ea764171df87e9ffa67088316badf56173955c2 /discord | |
| parent | Fix recursive inheritance in BaseUser (diff) | |
| download | discord.py-13251da8ce7a5567005338d7e617cb667596512d.tar.xz discord.py-13251da8ce7a5567005338d7e617cb667596512d.zip | |
Use a default value for StageInstance.discoverable_enabled
Apparently this caused crashes
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/stage_instance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/stage_instance.py b/discord/stage_instance.py index cbb6df19..e0e90453 100644 --- a/discord/stage_instance.py +++ b/discord/stage_instance.py @@ -97,8 +97,8 @@ class StageInstance(Hashable): self.id: int = int(data['id']) self.channel_id: int = int(data['channel_id']) self.topic: str = data['topic'] - self.privacy_level = try_enum(StagePrivacyLevel, data['privacy_level']) - self.discoverable_disabled = data['discoverable_disabled'] + self.privacy_level: StagePrivacyLevel = try_enum(StagePrivacyLevel, data['privacy_level']) + self.discoverable_disabled: bool = data.get('discoverable_disabled', False) def __repr__(self) -> str: return f'<StageInstance id={self.id} guild={self.guild!r} channel_id={self.channel_id} topic={self.topic!r}>' |