Browse Source

fix: move safety_alerts_channel_id assignment inside else block

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

1
discord/guild.py

@ -2285,7 +2285,6 @@ class Guild(Hashable):
raise TypeError( raise TypeError(
f'safety_alerts_channel must be of type TextChannel not {safety_alerts_channel.__class__.__name__}' 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 owner is not MISSING:

Loading…
Cancel
Save