Skip to content

Commit f83a332

Browse files
committed
fixed documentation to show all attributes
1 parent ee5824c commit f83a332

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

docs/source/access_token.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AccessToken
22
=============================
33

4-
.. currentmodule:: discord-oauth2.py
4+
.. currentmodule:: discordoauth2
55

66
.. class:: AccessToken()
77

@@ -11,37 +11,37 @@ AccessToken
1111

1212
:type: :class:`discordoauth2.Client`
1313

14-
.. atribute:: token
14+
.. attribute:: token
1515

1616
The raw token for this AccessToken, you can use :class:`discordoauth2.Client.from_access_token` to use it again.
1717

1818
:type: str
1919

20-
.. atribute:: expires
20+
.. attribute:: expires
2121

2222
The number of seconds until it expires from when the instance was created.
2323

2424
:type: int
2525

26-
.. atribute:: scope
26+
.. attribute:: scope
2727

2828
A list of scopes that are provided.
2929

3030
:type: list[str]
3131

32-
.. atribute:: refresh_token
32+
.. attribute:: refresh_token
3333

3434
The refresh_token for this AccessToken, you can use :class:`discordoauth2.Client.refresh_token` to use this authorization again after it expires.
3535

3636
:type: str
3737

38-
.. atribute:: webhook
38+
.. attribute:: webhook
3939

4040
A `parital 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

44-
.. atribute:: guild
44+
.. attribute:: guild
4545

4646
A `partial guild object <https://discord.com/developers/docs/resources/guild#guild-object-guild-structure>`__ if a bot was added to a guild.
4747

@@ -170,37 +170,37 @@ AccessToken
170170

171171
:type: :class:`discordoauth2.Client`
172172

173-
.. atribute:: token
173+
.. attribute:: token
174174

175175
The raw token for this AccessToken, you can use :class:`discordoauth2.Client.from_access_token` to use it again.
176176

177177
:type: str
178178

179-
.. atribute:: expires
179+
.. attribute:: expires
180180

181181
The number of seconds until it expires from when the instance was created.
182182

183183
:type: int
184184

185-
.. atribute:: scope
185+
.. attribute:: scope
186186

187187
A list of scopes that are provided.
188188

189189
:type: list[str]
190190

191-
.. atribute:: refresh_token
191+
.. attribute:: refresh_token
192192

193193
The refresh_token for this AccessToken, you can use :class:`discordoauth2.Client.refresh_token` to use this authorization again after it expires.
194194

195195
:type: str
196196

197-
.. atribute:: webhook
197+
.. attribute:: webhook
198198

199199
A `parital webhook object <https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure>`__ if they was a ``webhook.incoming`` scope.
200200

201201
:type: dict
202202

203-
.. atribute:: guild
203+
.. attribute:: guild
204204

205205
A `partial guild object <https://discord.com/developers/docs/resources/guild#guild-object-guild-structure>`__ if a bot was added to a guild.
206206

docs/source/client.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Client
22
=============================
33

4-
.. currentmodule:: discord-oauth2.py
4+
.. currentmodule:: discordoauth2
55

66
.. class:: Client(id, secret, redirect, bot_token=None)
77

@@ -16,7 +16,7 @@ Client
1616

1717
:type: int
1818

19-
.. atribute:: redirect_url
19+
.. attribute:: redirect_url
2020

2121
The redirect URL
2222

@@ -82,4 +82,4 @@ Client
8282

8383
.. versionadded:: 1.1
8484

85-
:param dict metadata: Should be a list of `application role connection metadata<https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object>__`
85+
:param dict metadata: Should be a list of `application role connection metadata<https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object>`__

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
copyright = '2022, TreeBen77'
77
author = 'TreeBen77'
88

9-
release = '1.0'
10-
version = '1.0.1'
9+
release = '1.1'
10+
version = '1.1.1'
1111

1212
# -- General configuration
1313

0 commit comments

Comments
 (0)