fix autodoc

This commit is contained in:
grey-cat-1908 2022-03-27 17:21:19 +03:00
parent c7cfacba8d
commit 85bf248a2c

View file

@ -403,7 +403,6 @@ class Guild(APIModelBase):
member_count: APINullable[int] = None member_count: APINullable[int] = None
voice_states: APINullable[List[Any]] = None voice_states: APINullable[List[Any]] = None
members: APINullable[List[Any]] = None members: APINullable[List[Any]] = None
channels: APINullable[List[Any]] = None
threads: APINullable[List[Any]] = None threads: APINullable[List[Any]] = None
presences: APINullable[List[Any]] = None presences: APINullable[List[Any]] = None
# TODO: Make a structure for voice_states, members, channels, threads, presences(?) # TODO: Make a structure for voice_states, members, channels, threads, presences(?)
@ -430,6 +429,10 @@ class Guild(APIModelBase):
# TODO: Make a structure for welcome_screen, stage_instances, # TODO: Make a structure for welcome_screen, stage_instances,
# stickers and guild_scheduled_events # stickers and guild_scheduled_events
@property
def channels(self):
return []
@overload @overload
async def create_channel( async def create_channel(
self, self,
@ -457,9 +460,9 @@ class Guild(APIModelBase):
---------- ----------
name: str name: str
channel name (1-100 characters) channel name (1-100 characters)
type: Optional[:class:int`] type: Optional[:class:`int`]
the type of channel the type of channel
topic: Optional[:class:str`] topic: Optional[:class:`str`]
channel topic (0-1024 characters) channel topic (0-1024 characters)
bitrate: Optional[:class:`int`] bitrate: Optional[:class:`int`]
the bitrate (in bits) of the voice channel (voice only) the bitrate (in bits) of the voice channel (voice only)