Browse Source

fix: move safety_alerts_channel_id assignment inside else block

pull/10446/head
vmphase 2 months ago
parent
commit
254e59ed9a
  1. 3
      discord/guild.py

3
discord/guild.py

@ -2285,8 +2285,7 @@ class Guild(Hashable):
raise TypeError(
f'safety_alerts_channel must be of type TextChannel not {safety_alerts_channel.__class__.__name__}'
)
fields['safety_alerts_channel_id'] = safety_alerts_channel.id
fields['safety_alerts_channel_id'] = safety_alerts_channel.id
if owner is not MISSING:
if self.owner_id != self._state.self_id:

Loading…
Cancel
Save