Skip to content

Commit 9894964

Browse files
committed
Document parameters
1 parent 60aca0f commit 9894964

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

discord/bot.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,16 @@ def create_group(
540540
541541
.. versionadded:: 2.0
542542
543+
Parameters
544+
----------
545+
name: :class:`str`
546+
The name of the group to create.
547+
description: :class:`str`
548+
The description of the group to create.
549+
guild_ids: Optional[List[int]]
550+
A list of the IDs of each guild this group should be added to, making it a guild command.
551+
This will be a global command if ``None`` is passed.
552+
543553
Returns
544554
--------
545555
SlashCommandGroup
@@ -560,6 +570,16 @@ def group(
560570
561571
.. versionadded:: 2.0
562572
573+
Parameters
574+
----------
575+
name: :class:`str`
576+
The name of the group to create.
577+
description: :class:`str`
578+
The description of the group to create.
579+
guild_ids: Optional[List[int]]
580+
A list of the IDs of each guild this group should be added to, making it a guild command.
581+
This will be a global command if ``None`` is passed.
582+
563583
Returns
564584
--------
565585
Callable[[Type[SlashCommandGroup]], SlashCommandGroup]

0 commit comments

Comments
 (0)