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: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,38 @@ I've finally published the library to PyPi! So now you can use pip.
13
13
pip install discord-oauth2.py
14
14
```
15
15
### Example With Flask
16
-
Don't forget to replace all the client information on line 20 and 21 with your application's own information. You can leave bot token empty if your not adding members to guilds.
16
+
Don't forget to replace all the client information with your application's own information. You can leave bot token empty if your not adding members to guilds.
# Replace your-client-id with your application's client id, replace your-client-secret with your client secret and replace your-redirect-url with the url that discord will redirect users to once they complete OAuth2.
9
-
# If you want to add users to a guild, insert a bot token with CREATE_INSTANT_INVITE permissions in the guilds you want to add users to.
9
+
# If you want to updated linked roles metadata or add users to a guild, insert a bot token with CREATE_INSTANT_INVITE permissions in the guilds you want to add users to.
10
+
11
+
client.update_linked_roles_metadata([
12
+
{
13
+
"type": 2,
14
+
"key": "level",
15
+
"name": "Level",
16
+
"description": "The level the user is on"
17
+
},
18
+
{
19
+
"type": 2,
20
+
"key": "wins",
21
+
"name": "Wins",
22
+
"description": "The number of times the user has won"
0 commit comments