Browse Source

Add missing and fix wrong docstrings

pull/10109/head
Puncher 2 years ago
committed by dolfies
parent
commit
02fd838f87
  1. 8
      discord/guild.py

8
discord/guild.py

@ -1659,6 +1659,10 @@ class Guild(Hashable):
----------- -----------
name: :class:`str` name: :class:`str`
The channel's name. The channel's name.
overwrites: Dict[Union[:class:`Role`, :class:`Member`], :class:`PermissionOverwrite`]
A :class:`dict` of target (either a role or a member) to
:class:`PermissionOverwrite` to apply upon creation of a channel.
Useful for creating secret channels.
topic: :class:`str` topic: :class:`str`
The channel's topic. The channel's topic.
category: Optional[:class:`CategoryChannel`] category: Optional[:class:`CategoryChannel`]
@ -2815,7 +2819,7 @@ class Guild(Hashable):
Parameters Parameters
------------ ------------
id: :class:`int` scheduled_event_id: :class:`int`
The scheduled event ID. The scheduled event ID.
with_counts: :class:`bool` with_counts: :class:`bool`
Whether to include the number of users that are subscribed to the event. Whether to include the number of users that are subscribed to the event.
@ -2877,6 +2881,8 @@ class Guild(Hashable):
datetime object. Consider using :func:`utils.utcnow`. datetime object. Consider using :func:`utils.utcnow`.
Required if the entity type is :attr:`EntityType.external`. Required if the entity type is :attr:`EntityType.external`.
privacy_level: :class:`PrivacyLevel`
The privacy level of the scheduled event.
entity_type: :class:`EntityType` entity_type: :class:`EntityType`
The entity type of the scheduled event. The entity type of the scheduled event.
image: :class:`bytes` image: :class:`bytes`

Loading…
Cancel
Save