mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-25 12:23:59 +00:00
Add missing and fix wrong docstrings
This commit is contained in:
parent
bd6bbdab00
commit
1e9d04bbca
@ -908,6 +908,9 @@ def hybrid_group(
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
|
name: Union[:class:`str`, :class:`~discord.app_commands.locale_str`]
|
||||||
|
The name to create the group with. By default this uses the
|
||||||
|
function name unchanged.
|
||||||
with_app_command: :class:`bool`
|
with_app_command: :class:`bool`
|
||||||
Whether to register the command also as an application command.
|
Whether to register the command also as an application command.
|
||||||
|
|
||||||
|
@ -1593,6 +1593,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`]
|
||||||
@ -2782,7 +2786,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.
|
||||||
@ -2846,6 +2850,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. If the channel is a
|
The entity type of the scheduled event. If the channel is a
|
||||||
:class:`StageInstance` or :class:`VoiceChannel` then this is
|
:class:`StageInstance` or :class:`VoiceChannel` then this is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user