Implement WelcomeScreen #42

Merged
paris-ci merged 9 commits from pr6477 into 2.0 2021-09-02 20:40:12 +00:00
Showing only changes of commit 71b8f31507 - Show all commits

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)