mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-09 20:09:30 +02:00
Update minor description
This commit is contained in:
@@ -22,8 +22,8 @@ app.secret_key = b"random bytes representing flask secret key"
|
|||||||
|
|
||||||
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
|
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
|
||||||
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
|
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
|
||||||
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI.
|
app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint.
|
||||||
app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method.
|
app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources.
|
||||||
|
|
||||||
discord = DiscordOAuth2Session(app)
|
discord = DiscordOAuth2Session(app)
|
||||||
|
|
||||||
@@ -63,6 +63,8 @@ if __name__ == "__main__":
|
|||||||
app.run()
|
app.run()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For an example to the working application, check [`test_app.py`](tests/test_app.py)
|
||||||
|
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
* Flask
|
* Flask
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ in exchange for fetching user's details and display them on web page.
|
|||||||
|
|
||||||
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
|
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
|
||||||
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
|
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
|
||||||
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI.
|
app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint.
|
||||||
app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method.
|
app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources.
|
||||||
|
|
||||||
|
|
||||||
discord = DiscordOAuth2Session(app)
|
discord = DiscordOAuth2Session(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user