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
Copy file name to clipboardExpand all lines: docs/source/access_token.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ AccessToken
37
37
38
38
.. attribute:: webhook
39
39
40
-
A `parital webhook object <https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure>`__ if they was a ``webhook.incoming`` scope.
40
+
A `partial webhook object <https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure>`__ if they was a ``webhook.incoming`` scope.
41
41
42
42
:type: dict
43
43
@@ -94,7 +94,7 @@ AccessToken
94
94
:param str nick: The nickname the member should have when they join.
95
95
:param list[int] role_ids: a List of role IDs to assign them when they join.
96
96
:param bool mute: Wether they should be server muted when they join.
97
-
:param bool deaf: Wether they should be server deafend when they join.
97
+
:param bool deaf: Wether they should be server deafened when they join.
98
98
99
99
:returns: dict
100
100
:raises discordoauth2.exceptions.HTTPException: The request failed
@@ -122,8 +122,8 @@ AccessToken
122
122
123
123
.. versionadded:: 1.1
124
124
125
-
:param str platform_name: Text that appears at the top of the app connection box, usally denoting the platform's name.
126
-
:param str platform_username: Text that appears under the platform name, large, and usally denoting the user's name on the platform.
125
+
:param str platform_name: Text that appears at the top of the app connection box, usually denoting the platform's name.
126
+
:param str platform_username: Text that appears under the platform name, large, and usually denoting the user's name on the platform.
127
127
:param dict metadata: List of keys and values to set the user's metadata. Supported types: :class:`bool`, :class:`datetime.datetime`, :class:`int`
128
128
129
129
:returns: dict
@@ -227,7 +227,7 @@ AccessToken
227
227
:param str nick: The nickname the member should have when they join.
228
228
:param list[int] role_ids: a List of role IDs to assign them when they join.
229
229
:param bool mute: Wether they should be server muted when they join.
230
-
:param bool deaf: Wether they should be server deafend when they join.
230
+
:param bool deaf: Wether they should be server deafened when they join.
231
231
232
232
:returns: dict
233
233
:raises discordoauth2.exceptions.HTTPException: The request failed
@@ -251,8 +251,8 @@ AccessToken
251
251
252
252
.. versionadded:: 1.1
253
253
254
-
:param str platform_name: Text that appears at the top of the app connection box, usally denoting the platform's name.
255
-
:param str platform_username: Text that appears under the platform name, large, and usally denoting the user's name on the platform.
254
+
:param str platform_name: Text that appears at the top of the app connection box, usually denoting the platform's name.
255
+
:param str platform_username: Text that appears under the platform name, large, and usually denoting the user's name on the platform.
256
256
:param dict metadata: List of keys and values to set the user's metadata. Supported types: :class:`bool`, :class:`datetime.datetime`, :class:`int`
Copy file name to clipboardExpand all lines: docs/source/client.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Client
8
8
:param int id: The application ID
9
9
:param str secret: The applications secret, this should be secret!
10
10
:param str redirect: The redirect URL for oauth2
11
-
:param str bot_token: When adding a user to a guild, a bot with sufficent permissions is required. if you're not going to add members to a guild leave this empty.
11
+
:param str bot_token: When adding a user to a guild, a bot with sufficient permissions is required. if you're not going to add members to a guild leave this empty.
12
12
13
13
.. attribute:: id
14
14
@@ -26,18 +26,18 @@ Client
26
26
27
27
Creates a :class:`discordoauth2.PartialAccessToken` object from a code. This is useful so you can store the :attr:`PartialAccessToken.token` and then continue using it.
28
28
29
-
:param str access_token: The code from oauth2, it is the code paramater on successful return redirect urls from discord's oauth2.
29
+
:param str access_token: The code from oauth2, it is the code parameter on successful return redirect urls from discord's oauth2.
:param Union[str, list[str]] scope: A list, or space-seperated string for the authorization scope
97
+
:param Union[str, list[str]] scope: A list, or space-separated string for the authorization scope
98
98
:param Optional[str] state: State parameter. It is recommended for security.
99
99
:param Optional[bool] skip_prompt: Doesn't require the end user to reauthorize if they've already authorized you app before. Defaults to ``False``.
100
100
:param Optional[Literal["code", "token"]] response_type: either code, or token. token means the server can't access it, but the client can use it without converting.
0 commit comments