Skip to content

Commit fcb5883

Browse files
committed
Fix typos
1 parent cca2e34 commit fcb5883

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/source/access_token.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AccessToken
3737

3838
.. attribute:: webhook
3939

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.
4141

4242
:type: dict
4343

@@ -94,7 +94,7 @@ AccessToken
9494
:param str nick: The nickname the member should have when they join.
9595
:param list[int] role_ids: a List of role IDs to assign them when they join.
9696
: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.
9898

9999
:returns: dict
100100
:raises discordoauth2.exceptions.HTTPException: The request failed
@@ -122,8 +122,8 @@ AccessToken
122122

123123
.. versionadded:: 1.1
124124

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.
127127
:param dict metadata: List of keys and values to set the user's metadata. Supported types: :class:`bool`, :class:`datetime.datetime`, :class:`int`
128128

129129
:returns: dict
@@ -227,7 +227,7 @@ AccessToken
227227
:param str nick: The nickname the member should have when they join.
228228
:param list[int] role_ids: a List of role IDs to assign them when they join.
229229
: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.
231231

232232
:returns: dict
233233
:raises discordoauth2.exceptions.HTTPException: The request failed
@@ -251,8 +251,8 @@ AccessToken
251251

252252
.. versionadded:: 1.1
253253

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.
256256
:param dict metadata: List of keys and values to set the user's metadata. Supported types: :class:`bool`, :class:`datetime.datetime`, :class:`int`
257257

258258
:returns: dict

docs/source/client.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Client
88
:param int id: The application ID
99
:param str secret: The applications secret, this should be secret!
1010
: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.
1212

1313
.. attribute:: id
1414

@@ -26,18 +26,18 @@ Client
2626

2727
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.
2828

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.
3030

3131
:returns: :class:`discordoauth2.PartialAccessToken`
3232

3333
.. method:: exchange_code(code)
3434

3535
Converts a code from the redirect url into a :class:`discordoauth2.AccessToken`
3636

37-
:param str code: `code` paramater from OAuth2 redirect URL
37+
:param str code: `code` parameter from OAuth2 redirect URL
3838

3939
:returns: :class:`discordoauth2.AccessToken`
40-
:raises discordoauth2.exceptions.HTTPException: The request failed, usally because the client ID, client, secret, redirect or code is incorrect
40+
:raises discordoauth2.exceptions.HTTPException: The request failed, usually because the client ID, client, secret, redirect or code is incorrect
4141
:raises discordoauth2.exceptions.RateLimited: You're being rate limited.
4242

4343
.. method:: refresh_token(refresh_token)
@@ -47,17 +47,17 @@ Client
4747
:param str refresh_token: The refresh token, can be found from :attr:`discordoauth2.AccessToken.refresh_token`
4848

4949
:returns: :class:`discordoauth2.AccessToken`
50-
:raises discordoauth2.exceptions.HTTPException: The request failed, usally because the client ID, client, secret, redirect or code is incorrect
50+
:raises discordoauth2.exceptions.HTTPException: The request failed, usually because the client ID, client, secret, redirect or code is incorrect
5151
:raises discordoauth2.exceptions.RateLimited: You're being rate limited.
5252

53-
.. method:: client_credentails_grant(scope)
53+
.. method:: client_credentials_grant(scope)
5454

5555
Creates an :class:`discordoauth2.AccessToken` on behalf of the application's owner.
5656

5757
:param list[str] scope: List of scopes.
5858

5959
:returns: :class:`discordoauth2.AccessToken`
60-
:raises discordoauth2.exceptions.HTTPException: The request failed, usally because the client ID, client, secret, redirect or code is incorrect
60+
:raises discordoauth2.exceptions.HTTPException: The request failed, usually because the client ID, client, secret, redirect or code is incorrect
6161
:raises discordoauth2.exceptions.RateLimited: You're being rate limited.
6262

6363
.. warning::
@@ -73,7 +73,7 @@ Client
7373
:param str token: Access/Refresh token to revoke
7474
:param Optional[str] token_type: Not required, but should be either ``refresh_token`` or ``access_token``
7575

76-
:raises discordoauth2.exceptions.HTTPException: The request failed, usally because the client ID, client, secret, redirect or code is incorrect
76+
:raises discordoauth2.exceptions.HTTPException: The request failed, usually because the client ID, client, secret, redirect or code is incorrect
7777
:raises discordoauth2.exceptions.RateLimited: You're being rate limited.
7878

7979
.. method:: update_linked_roles_metadata(metadata)
@@ -94,7 +94,7 @@ Client
9494

9595
.. versionadded:: 1.2
9696

97-
: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
9898
:param Optional[str] state: State parameter. It is recommended for security.
9999
:param Optional[bool] skip_prompt: Doesn't require the end user to reauthorize if they've already authorized you app before. Defaults to ``False``.
100100
: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

Comments
 (0)