copy over the kwargs issue.

This commit is contained in:
NCPlayz 2021-02-24 22:30:12 +00:00 committed by Arthur Jovart
parent 27ed72369a
commit 71b8f31507
No known key found for this signature in database
GPG Key ID: DE4444AAAAAAAAAA

View File

@ -2630,6 +2630,7 @@ class Guild(Hashable):
if not isinstance(wc, WelcomeChannel):
raise InvalidArgument('welcome_channels parameter must be a list of WelcomeChannel')
welcome_channels_serialised.append(wc.to_dict())
kwargs['welcome_channels'] = welcome_channels_serialised
if kwargs:
data = await self._state.http.edit_welcome_screen(self.id, kwargs)