Fix UnboundLocalError
for editing public_updates_channel
This commit is contained in:
parent
169b61092a
commit
0c69c99785
@ -1216,10 +1216,10 @@ class Guild(Hashable):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if rules_channel is None:
|
if public_updates_channel is None:
|
||||||
fields['public_updates_channel_id'] = rules_channel
|
fields['public_updates_channel_id'] = public_updates_channel
|
||||||
else:
|
else:
|
||||||
fields['public_updates_channel_id'] = rules_channel.id
|
fields['public_updates_channel_id'] = public_updates_channel.id
|
||||||
await http.edit_guild(self.id, reason=reason, **fields)
|
await http.edit_guild(self.id, reason=reason, **fields)
|
||||||
|
|
||||||
async def fetch_channels(self):
|
async def fetch_channels(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user