From d9c90a8af6ec688ab3a382ce2963227223010654 Mon Sep 17 00:00:00 2001 From: dolfies Date: Sat, 26 Feb 2022 21:02:49 -0500 Subject: [PATCH] Fix WelcomeScreen typos --- discord/guild.py | 2 +- discord/welcome_screen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: