copy over the kwargs issue.

This commit is contained in:
NCPlayz
2021-09-01 20:20:41 +02:00
committed by Arthur Jovart
parent 27ed72369a
commit 71b8f31507
+1
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)