Browse Source

Fix WelcomeScreen typos

pull/10109/head
dolfies 3 years ago
parent
commit
d9c90a8af6
  1. 2
      discord/guild.py
  2. 2
      discord/welcome_screen.py

2
discord/guild.py

@ -2927,7 +2927,7 @@ class Guild(Hashable):
if description is not MISSING:
payload['description'] = description
if welcome_channels is not MISSING:
channels = [channel.to_dict() for channel in welcome_channels] if welcome_channels else []
channels = [channel._to_dict() for channel in welcome_channels] if welcome_channels else []
payload['welcome_channels'] = channels
if payload:

2
discord/welcome_screen.py

@ -178,7 +178,7 @@ class WelcomeScreen:
if description is not MISSING:
payload['description'] = description
if welcome_channels is not MISSING:
channels = [channel.to_dict() for channel in welcome_channels] if welcome_channels else []
channels = [channel._to_dict() for channel in welcome_channels] if welcome_channels else []
payload['welcome_channels'] = channels
if payload:

Loading…
Cancel
Save