Implement Guild Scheduled Events

This commit is contained in:
Nadir Chowdhury authored and GitHub committed 2022-03-01 01:00:04 -05:00
1 parent 90cabd1673
commit 3c6279b947
22 files changed
+1313 -110

No files matched your search

+2 -2
View File
@@ -314,6 +314,6 @@ class Widget:
:class:`Invite`
The invite from the widget's invite URL.
"""
invite_id = resolve_invite(self._invite)
data = await self._state.http.get_invite(invite_id, with_counts=with_counts)
resolved = resolve_invite(self._invite)
data = await self._state.http.get_invite(resolved.code, with_counts=with_counts)
return Invite.from_incomplete(state=self._state, data=data)