You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add question tags to type descriptors in docstrings (#936)
* docs: remove question marks in docstrings
* refactor: see if adding ? to both param and type works
* Revert "refactor: see if adding ? to both param and type works"
This reverts commit 0e8ae2e.
* Revert "docs: remove question marks in docstrings"
This reverts commit d466a57.
* docs: add ? to optional parameter types
The fields `archived`, `auto_archive_duration` and `locked` require the provided channel to be a thread.
316
316
317
317
:param name?: The name of the channel, defaults to the current value of the channel
318
-
:type name: str
318
+
:type name?: str
319
319
:param topic?: The topic of that channel, defaults to the current value of the channel
320
-
:type topic: Optional[str]
320
+
:type topic?: Optional[str]
321
321
:param bitrate?: (voice channel only) The bitrate (in bits) of the voice channel, defaults to the current value of the channel
322
-
:type bitrate: Optional[int]
322
+
:type bitrate?: Optional[int]
323
323
:param user_limit?: (voice channel only) Maximum amount of users in the channel, defaults to the current value of the channel
324
-
:type user_limit: Optional[int]
324
+
:type user_limit?: Optional[int]
325
325
:param rate_limit_per_use?: Amount of seconds a user has to wait before sending another message (0-21600), defaults to the current value of the channel
326
326
:type rate_limit_per_user: Optional[int]
327
327
:param position?: Sorting position of the channel, defaults to the current value of the channel
328
-
:type position: Optional[int]
328
+
:type position?: Optional[int]
329
329
:param parent_id?: The id of the parent category for a channel, defaults to the current value of the channel
330
-
:type parent_id: Optional[int]
330
+
:type parent_id?: Optional[int]
331
331
:param nsfw?: Whether the channel is nsfw or not, defaults to the current value of the channel
332
-
:type nsfw: Optional[bool]
332
+
:type nsfw?: Optional[bool]
333
333
:param permission_overwrites?: The permission overwrites, if any
:param reason?: An optional reason for the audit log
986
-
:type reason: Optional[str]
986
+
:type reason?: Optional[str]
987
987
:return: The created thread
988
988
:rtype: Channel
989
989
"""
@@ -1037,21 +1037,21 @@ async def create_invite(
1037
1037
Creates an invite for the channel
1038
1038
1039
1039
:param max_age?: Duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days). Default 86400 (24h)
1040
-
:type max_age: Optional[int]
1040
+
:type max_age?: Optional[int]
1041
1041
:param max_uses?: Max number of uses or 0 for unlimited. between 0 and 100. Default 0
1042
-
:type max_uses: Optional[int]
1042
+
:type max_uses?: Optional[int]
1043
1043
:param temporary?: Whether this invite only grants temporary membership. Default False
1044
-
:type temporary: Optional[bool]
1044
+
:type temporary?: Optional[bool]
1045
1045
:param unique?: If true, don't try to reuse a similar invite (useful for creating many unique one time use invites). Default False
1046
-
:type unique: Optional[bool]
1046
+
:type unique?: Optional[bool]
1047
1047
:param target_type?: The type of target for this voice channel invite
1048
-
:type target_type: Optional["InviteTargetType"]
1048
+
:type target_type?: Optional["InviteTargetType"]
1049
1049
:param target_user_id?: The id of the user whose stream to display for this invite, required if target_type is STREAM, the user must be streaming in the channel
1050
-
:type target_user_id: Optional[int]
1050
+
:type target_user_id?: Optional[int]
1051
1051
:param target_application_id?: The id of the embedded application to open for this invite, required if target_type is EMBEDDED_APPLICATION, the application must have the EMBEDDED flag
1052
-
:type target_application_id: Optional[int]
1052
+
:type target_application_id?: Optional[int]
1053
1053
:param reason?: The reason for the creation of the invite
0 commit comments