diff --git a/discord/guild.py b/discord/guild.py index 87a29596a..57ea2273b 100644 --- a/discord/guild.py +++ b/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: diff --git a/discord/welcome_screen.py b/discord/welcome_screen.py index 371332b80..c026348e5 100644 --- a/discord/welcome_screen.py +++ b/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: