From f9f77d9aa4b06fb87df67846bd9078264e63e4cd Mon Sep 17 00:00:00 2001 From: thec0sm0s Date: Wed, 15 Jul 2020 12:06:39 +0530 Subject: [PATCH] Update minor description --- README.md | 6 ++++-- docs/introduction.rst | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ff90e61..3ab1849 100644 --- a/README.md +++ b/README.md @@ -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_SECRET"] = "" # Discord client secret. -app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI. -app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method. +app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint. +app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources. discord = DiscordOAuth2Session(app) @@ -63,6 +63,8 @@ if __name__ == "__main__": app.run() ``` +For an example to the working application, check [`test_app.py`](tests/test_app.py) + ### Requirements * Flask diff --git a/docs/introduction.rst b/docs/introduction.rst index c10201f..264a2eb 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -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_SECRET"] = "" # Discord client secret. - app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI. - app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method. + app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint. + app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources. discord = DiscordOAuth2Session(app)