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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
AccessToken
2
2
=============================
3
3
4
-
.. currentmodule:: discord-oauth2.py
4
+
.. currentmodule:: discordoauth2
5
5
6
6
.. class:: AccessToken()
7
7
@@ -11,37 +11,37 @@ AccessToken
11
11
12
12
:type::class:`discordoauth2.Client`
13
13
14
-
.. atribute:: token
14
+
.. attribute:: token
15
15
16
16
The raw token for this AccessToken, you can use :class:`discordoauth2.Client.from_access_token` to use it again.
17
17
18
18
:type: str
19
19
20
-
.. atribute:: expires
20
+
.. attribute:: expires
21
21
22
22
The number of seconds until it expires from when the instance was created.
23
23
24
24
:type: int
25
25
26
-
.. atribute:: scope
26
+
.. attribute:: scope
27
27
28
28
A list of scopes that are provided.
29
29
30
30
:type: list[str]
31
31
32
-
.. atribute:: refresh_token
32
+
.. attribute:: refresh_token
33
33
34
34
The refresh_token for this AccessToken, you can use :class:`discordoauth2.Client.refresh_token` to use this authorization again after it expires.
35
35
36
36
:type: str
37
37
38
-
.. atribute:: webhook
38
+
.. attribute:: webhook
39
39
40
40
A `parital 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
44
-
.. atribute:: guild
44
+
.. attribute:: guild
45
45
46
46
A `partial guild object <https://discord.com/developers/docs/resources/guild#guild-object-guild-structure>`__ if a bot was added to a guild.
47
47
@@ -170,37 +170,37 @@ AccessToken
170
170
171
171
:type::class:`discordoauth2.Client`
172
172
173
-
.. atribute:: token
173
+
.. attribute:: token
174
174
175
175
The raw token for this AccessToken, you can use :class:`discordoauth2.Client.from_access_token` to use it again.
176
176
177
177
:type: str
178
178
179
-
.. atribute:: expires
179
+
.. attribute:: expires
180
180
181
181
The number of seconds until it expires from when the instance was created.
182
182
183
183
:type: int
184
184
185
-
.. atribute:: scope
185
+
.. attribute:: scope
186
186
187
187
A list of scopes that are provided.
188
188
189
189
:type: list[str]
190
190
191
-
.. atribute:: refresh_token
191
+
.. attribute:: refresh_token
192
192
193
193
The refresh_token for this AccessToken, you can use :class:`discordoauth2.Client.refresh_token` to use this authorization again after it expires.
194
194
195
195
:type: str
196
196
197
-
.. atribute:: webhook
197
+
.. attribute:: webhook
198
198
199
199
A `parital webhook object <https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure>`__ if they was a ``webhook.incoming`` scope.
200
200
201
201
:type: dict
202
202
203
-
.. atribute:: guild
203
+
.. attribute:: guild
204
204
205
205
A `partial guild object <https://discord.com/developers/docs/resources/guild#guild-object-guild-structure>`__ if a bot was added to a guild.
: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>`__
0 commit comments