100 Commits
Author SHA1 Message Date
weibeu e5bda937d7 Update library dependencies 2022-05-28 22:23:31 +05:30
weibeu 63edc0e404 Remove redundant requirement 2022-02-15 01:17:44 +05:30
weibeu 427b0baa27 Set version constraint over PyJWT only 2022-02-15 01:15:51 +05:30
weibeu 5acd131629 Configure and fix the .readthedocs.yml 2022-02-11 16:52:20 +05:30
weibeu d42b7f2601 Configure and fix the .readthedocs.yml 2022-02-11 16:45:40 +05:30
weibeu 4fb7696ba4 Configure and fix the .readthedocs.yml 2022-02-11 16:44:56 +05:30
weibeu faba138ebd Configure and fix the .readthedocs.yml 2022-02-11 16:40:25 +05:30
weibeu 0fdd148b9a Use supported Python version 2022-02-11 16:22:33 +05:30
weibeu a431e697dd Fix .readthedocs.yml 2022-02-11 16:21:24 +05:30
weibeu 19c4bf93cd Drop the discord.py requirement as it has been abandoned 2022-02-11 16:14:20 +05:30
weibeu 0985cb26d9 Lock the project dependencies 2022-02-11 10:12:47 +05:30
weibeuandGitHub 4a45041da8 Merge pull request #48 from Virusmater/patch-1
change small type for function and import os
2021-06-10 10:25:59 +05:30
weibeu 11fcdbb9a5 Add an example demonstrating sending message to user after they authorize the application 2021-04-20 14:43:37 +05:30
thec0sm0s 1c81a9516a ✔ Bump the version to 0.1.64 2020-12-25 09:26:00 +05:30
thec0sm0s b0c66ee377 Fix compatibility with pyjwt v2.0.0 2020-12-25 09:24:51 +05:30
thec0sm0s b45cc8fea3 ✔ Bump the version to 0.1.63 2020-10-26 00:27:01 +05:30
thec0sm0s 9a2f413433 Include uniquely generated state secret on each new Discord session 2020-10-26 00:24:08 +05:30
thec0sm0s 1f1f3e211a Declare AccessDenied exception in __all__ 2020-10-26 00:16:58 +05:30
thec0sm0s 10951bfed3 Do not get state implicitly 2020-10-26 00:13:28 +05:30
thec0sm0s 87fe69e9e2 Do not immediately pop the state to prevent race conditions 2020-10-26 00:00:23 +05:30
thec0sm0s 8bc15b23ad 📝 Add config values used by Flask Discord in docs 2020-10-07 17:45:00 +05:30
thec0sm0s a84b36e8ff Merge branch 'master' of https://github.com/HarryET/Flask-Discord into lazy 2020-10-07 17:18:06 +05:30
thec0sm0s 7420a4122e ✔ Minor fix - revert to cached method 2020-10-07 17:12:50 +05:30
thec0sm0s 0138a824ca ✔ Bump the version to 0.1.62 2020-10-07 17:08:16 +05:30
thec0sm0s ad380cfb5c Minor refactoring - Separate exception from the parsing logic. Expect Discord API to always return JSON payload with all keys on Ratelimit 2020-10-07 17:07:52 +05:30
thec0sm0sandGitHub 17b7c6b82d Update CONTRIBUTING.rst 2020-09-27 16:35:37 +05:30
thec0sm0sandGitHub aec2876759 Update CONTRIBUTING.rst 2020-09-27 16:34:56 +05:30
thec0sm0s 6f3aed673a ✔ Minor fix 2020-09-27 15:40:02 +05:30
thec0sm0s 1a90cd18c6 ✔ Add CONTRIBUTING.rst 2020-09-27 15:36:34 +05:30
thec0sm0s bf53bf825f ✔ Add proxy support 2020-09-13 23:58:08 +05:30
thec0sm0s 5bd875cae9 ✔ Docs improvements 2020-09-11 10:20:48 +05:30
thec0sm0s f43575162f ✔ Bump the version to 0.1.61 2020-09-11 10:11:38 +05:30
thec0sm0s da5a609682 ✔ Minor additions to docs 2020-09-11 10:08:18 +05:30
thec0sm0s f749741647 ✔ Explicitly set OAUTHLIB_INSECURE_TRANSPORT to true only in development environment 2020-09-11 10:02:08 +05:30
thec0sm0s 03eea97a77 ✔ Raise an instance of the exception class 2020-09-11 09:55:33 +05:30
thec0sm0s 72538e5ef3 Do not set OAUTHLIB_INSECURE_TRANSPORT to true implicitly 2020-09-11 09:54:56 +05:30
thec0sm0s 0a2323f387 ✔ Implement method for lazy initialization supporting flask factory patterns. 2020-09-11 09:53:46 +05:30
thec0sm0s d23441a070 ✔ Include pyjwt requirement 2020-08-10 11:34:44 +05:30
thec0sm0s 8b423e216e ✔ Properly raise an Exception when user cancels the flow while OAuth grant 2020-08-10 11:32:52 +05:30
thec0sm0s 369127092b 👍 Bump version to 0.1.60 2020-08-10 11:08:15 +05:30
thec0sm0s 1b505fec69 Refactor and improve jwt state manager 2020-08-10 11:07:09 +05:30
thec0sm0sandGitHub fbb7e23116 Merge pull request #23 from williamhatcher/dev
Encode params into state
2020-08-09 20:00:12 +05:30
thec0sm0s f93d5c059b Implement explicit methods to save and get OAuth2 token and secrets 2020-08-04 21:35:37 +05:30
thec0sm0s 7ff98a9e1e Add ko-fi link in FUNDING.yml 2020-07-30 17:31:01 +05:30
thec0sm0s 9e626d9e1b Update requirements 2020-07-29 22:47:56 +05:30
thec0sm0s 59d944aa0c Use separate _fetch_token method 2020-07-25 22:52:34 +05:30
thec0sm0s 164791436e Move attributes from base class to actual client 2020-07-24 23:45:37 +05:30
thec0sm0s d703937da5 Make client secret and bot tokens protected attributes so that someone doesn't spills their secrets accidentally 2020-07-24 23:43:29 +05:30
thec0sm0s 5e99ed9af9 Abstract guild permissions value within discord.py Permissions 2020-07-18 17:26:50 +05:30
thec0sm0s 66b5ccc734 Register discord.py docs to mapping 2020-07-18 16:36:09 +05:30
thec0sm0s f11677ed34 Update dependencies 2020-07-18 15:09:30 +05:30
thec0sm0s f9f77d9aa4 Update minor description 2020-07-15 12:06:39 +05:30
thec0sm0s cd1b501315 Merge branch 'master' into dev 2020-07-15 11:54:18 +05:30
thec0sm0sandGitHub 79b6d56305 Merge pull request #21 from williamhatcher/master
Add Unauthorized redirect to basic usage
2020-07-15 11:05:50 +05:30
thec0sm0s 3ea0fcc44e ✔ Use the bot request if the model requires bot token, not OAuth 2020-06-29 23:57:21 +05:30
thec0sm0s 0bab72c9e3 ✔ Use the already implemented bot_request 2020-06-27 15:52:46 +05:30
thec0sm0s 5d84158502 ✔ Add low level request method for bot scope resources 2020-06-27 15:40:53 +05:30
thec0sm0s d552a048ee ✔ Bump version to 0.1.54 2020-06-23 20:49:48 +05:30
thec0sm0s 2712a844bb ✔ Explicitly mention used packages in requirements 2020-06-23 20:49:25 +05:30
thec0sm0s 1d2c85d3e8 ✔ Add support to specify custom parameters in authorization URL along with ability to determine authorization type 2020-06-23 20:46:26 +05:30
thec0sm0s c0742a3651 ✔ Update the requirements 2020-06-08 10:43:51 +05:30
thec0sm0s cf2c832aa2 🔼 Bump version to 0.1.53 2020-06-08 10:22:54 +05:30
thec0sm0s fa508076fd User 4 space indentation 2020-06-08 10:20:03 +05:30
thec0sm0sandGitHub c5ff29728e Merge pull request #15 from PredaaA/patch-1
Fix cachetools requirement missing in setup
2020-06-08 10:13:54 +05:30
thec0sm0s 1fc91d24c2 Handle cases efficiently when user avatar hash is None. Add method to return Discord default avatar url equivalent. 2020-06-02 13:15:00 +05:30
thec0sm0s f5be182c2f Bump the version to 0.1.51 2020-05-21 10:55:50 +05:30
thec0sm0sandGitHub fd753fb5e5 Merge pull request #13 from A-Trash-Coder/master
Add a __eq__ and __ne__ to models Guild and User
2020-05-21 10:46:07 +05:30
thec0sm0sandGitHub 4a2440ea53 Merge pull request #10 from thec0sm0s/dev
An internal caching layer.
2020-05-16 20:19:36 +05:30
thec0sm0s c654f539b3 Some docs thing 2020-05-16 17:47:06 +05:30
thec0sm0s 2004ebe7ec Bump the version to 0.1.50 2020-05-15 23:09:26 +05:30
thec0sm0s 44eee9ebe0 Actually make use of the internal caching 2020-05-15 23:07:49 +05:30
thec0sm0s b1abfb5c2d Set initial value of internal caches to None 2020-05-15 22:41:41 +05:30
thec0sm0s 44e3423cd9 Don't cache guilds by default 2020-05-15 18:54:43 +05:30
thec0sm0s 252506e16c Use user_id shorthand property 2020-05-15 18:31:39 +05:30
thec0sm0s f970eb94bb Add user_id property 2020-05-15 18:13:42 +05:30
thec0sm0s 318e2318b8 Add import to Integration 2020-05-15 18:08:27 +05:30
thec0sm0s a314928fbf Remove Integrations. Not meant to use directly 2020-05-15 17:38:23 +05:30
thec0sm0s fad0df2b79 Remove Integrations. Not meant to use directly 2020-05-15 17:37:31 +05:30
thec0sm0s 367a0e4dd3 Minor fix 2020-05-14 22:47:16 +05:30
thec0sm0s e70fd91424 Override default fetch_from_api and add a caching layer 2020-05-14 22:35:37 +05:30
thec0sm0s 7332ae9f4c Docs typo fix 2020-05-14 22:34:25 +05:30
thec0sm0s 3633d67d4c Minor fix, pass dict rather than list 2020-05-14 22:32:00 +05:30
thec0sm0s bf323e4585 Update the instance cache itself 2020-05-14 22:29:00 +05:30
thec0sm0s 362e784ba6 Override default fetch_from_api to implement updating guild cache 2020-05-14 22:28:04 +05:30
thec0sm0s 2e6722e5ba Actually cache the user when they're fetch from API 2020-05-14 21:23:39 +05:30
thec0sm0s 6cf7752a10 Add get_from_cache classmethod 2020-05-14 21:14:09 +05:30
thec0sm0s f1cc7958fb DOCS 2020-05-14 21:04:50 +05:30
thec0sm0s 224d0570f5 Add DISCORD_USER_ID in SESSION_KEYS. Try removing user from cache if exists 2020-05-14 21:01:10 +05:30
thec0sm0s 57ddb9e27f Save discord user id in flask session 2020-05-14 20:58:01 +05:30
thec0sm0s cbc30d76b1 Override default fetch_from_api classmethod providing options to cache user guilds or connections 2020-05-14 20:52:22 +05:30
thec0sm0s baa1fefd50 Make integrations as separate entity, which might be also and entity of guild 2020-05-14 20:38:59 +05:30
thec0sm0s 85c597ac9b Add guilds and cache to User internal cache. Also add their fetch methods 2020-05-14 20:38:27 +05:30
thec0sm0s 6652cb0459 Add interphinx_mapping 2020-05-13 17:04:39 +05:30
thec0sm0s 7338c5b269 Implement users cache. Set cachetools.LFUCache to use by default 2020-05-12 21:29:02 +05:30
thec0sm0s 782d09246f Add MANY property to automatically return list from fetch_from_api when many of these models exists 2020-05-12 12:35:09 +05:30
thec0sm0s 6365ab461a Use DiscordModelsMeta class. Set ROUTE as required class attribute for bases. Add fetch_from_api classmethod which is shorthand to return the current model 2020-05-12 12:20:32 +05:30
thec0sm0s bc22196695 Use _request shorthand method 2020-05-11 21:28:14 +05:30
thec0sm0s 94d0c536c5 Check for session in Flask session 2020-05-11 21:06:26 +05:30
thec0sm0s 4d278557aa Typo fix 2020-05-10 19:54:51 +05:30
thec0sm0s accc65a8bc Typo fix 2020-05-10 19:54:09 +05:30