Commit Graph
100 Commits
Author SHA1 Message Date
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
thec0sm0s feb8ea3f0a Check if application is being rate limited and raise exception 2020-05-10 18:11:50 +05:30
thec0sm0s c645a6c943 Use finally clause 2020-05-10 18:06:27 +05:30
thec0sm0s 1d7036e6eb Handle JSON decode error 2020-05-10 18:05:15 +05:30
thec0sm0s 044104a171 One Liner style? 2020-05-10 17:52:07 +05:30
thec0sm0s 78e21c4702 Internally handle JSONDecodeError 2020-05-10 17:47:31 +05:30
thec0sm0s 1e97db58f5 Use internal flask_discord request method 2020-05-10 17:20:43 +05:30
thec0sm0s fbf341a3ec Modify request method so that it can be used for standard requests as well 2020-05-10 17:20:20 +05:30
thec0sm0s 21e4988d59 Somewhat better index 2020-05-10 17:14:10 +05:30
thec0sm0s 46d7052daa Somewhat better index 2020-05-10 16:57:47 +05:30
thec0sm0s 7cb638c60b Somewhat better index 2020-05-10 16:55:02 +05:30
thec0sm0s ed29f41a97 Add RateLimited exception 2020-05-10 16:16:52 +05:30
thecosmos 064a73e2f6 Minor docs fix 2020-04-29 19:28:47 +05:30
thecosmos 5d4fa1df56 Minor docs fix 2020-04-29 18:51:18 +05:30
thecosmos 079fbc8106 Minor docs fix 2020-04-29 18:48:31 +05:30
thecosmos fc68a92770 Minor docs fix 2020-04-29 18:41:30 +05:30
thecosmos e05d247408 Add requires_authorization utility 2020-04-29 18:38:23 +05:30
thecosmos 30f6bc7d7a Add links 2020-04-28 14:24:57 +05:30
thecosmos 7d15cb2486 Add some badges 2020-04-28 12:25:04 +05:30
thecosmos b58170438b Add some badges 2020-04-28 12:24:05 +05:30
thecosmos e94d4f50ad Add test guilds 2020-04-28 12:07:15 +05:30
thecosmos 7456c71bdc Add discord bot token in configs 2020-04-17 15:40:07 +05:30
thecosmos d2b2e5d4a8 Merge branch 'master' into dev 2020-04-15 18:36:06 +05:30
thecosmos 0b9c84edae Merge branch 'master' of https://github.com/thec0sm0s/Flask-Discord 2020-04-15 18:35:37 +05:30
thecosmos c0884b2c1d Add route to directly add to provided server ID in route 2020-04-15 18:35:05 +05:30
thecosmos b0cfdbd3d6 Bump the version to 0.1.10 2020-04-14 18:24:00 +05:30
thecosmos 2d6c78dda5 Update docs 2020-04-14 18:23:16 +05:30
thecosmos 57c3d4d5a7 Implement add_to_guild method 2020-04-14 17:30:53 +05:30
thecosmos 386b0655c3 Don't use bot token 2020-04-14 16:31:23 +05:30
thecosmos 95aa57a699 Try adding user to guild method [broken] 2020-04-14 15:57:35 +05:30
thecosmos 04501f7cbc remove get_json methofd 2020-04-14 14:02:16 +05:30
thecosmos 1ed68d66e3 Use token updater method 2020-04-14 14:00:34 +05:30
thecosmos 558f2875b0 Remove get_json method 2020-04-14 13:52:09 +05:30
thecosmos 0030cddb07 Fix docs 2020-04-14 09:53:44 +05:30
thecosmos a0674e80dc Fix docs 2020-04-14 09:45:31 +05:30
thecosmos 030333987f Use and implement generalized request method rather than just get. 2020-04-14 09:21:36 +05:30
thecosmos 03952f66f9 Prefix all configs with DISCORD_ to prevent un intended user override 2020-04-14 08:46:55 +05:30
thec0sm0sandGitHub 38d0e72fdb Create FUNDING.yml 2020-04-12 17:48:54 +05:30
thecosmos dd2df8ac0b TODO 2020-04-12 17:14:10 +05:30
thecosmos 3f1bf03490 Bump version to 0.1.09 2020-02-08 16:48:29 +05:30
thecosmos 902bd893a5 Update PyPI meta 2020-02-08 16:48:10 +05:30
thecosmos 4008c3d259 Update PyPI meta 2020-02-08 16:43:44 +05:30
thecosmos 55accb67e8 Test suit for user connections 2020-02-08 14:35:42 +05:30
thecosmos 85f1472665 Use secrets from environment 2020-02-08 14:13:17 +05:30
thecosmos 42dab7bb81 Bump version to 0.1.07 2020-02-08 14:10:20 +05:30
thecosmos 80f779d61a Update docstrings 2020-02-08 14:09:00 +05:30
thec0sm0sandGitHub 983b1c6cb8 Merge pull request #2 from dorilahav1234561/dev
Fix get_connections on dev branch.
2020-02-08 11:59:07 +05:30
thecosmos 443e36453e Add exception handling for unused session keys 2020-01-18 16:14:38 +05:30
thecosmos bec89bbeda Version change 2019-11-22 15:27:57 +05:30
thecosmos 64d59fdb3b discriminator remains string to prevent some special case unwanted stuffs 2019-11-22 15:27:30 +05:30
thecosmos a6cced2168 Version change 2019-11-22 01:02:13 +05:30
thecosmos 73d8174533 Add support for animated avatars 2019-11-22 00:56:33 +05:30
thecosmos 835733965e Bug fix 2019-05-26 16:16:59 +05:30
thecosmos 48dcbe6385 Docs changes 2019-05-26 10:58:13 +05:30
thecosmos 9d5cbcdd77 Use caps keys to store discord secrets in flask session object 2019-05-26 10:56:15 +05:30
thecosmos 1b2932f1b0 Use configs from Flask app instance 2019-05-26 10:52:24 +05:30
thecosmos def30d1348 Docs fix 2019-05-23 00:09:23 +05:30
thecosmos f89f3d1ac1 Version change 2019-05-22 23:56:15 +05:30
thecosmos d975547968 Add base class. Make to_json available to all of the existing models. 2019-05-22 23:52:17 +05:30
thecosmos ca36e3ce03 Minor docs changes - add trailing slash 2019-05-22 22:59:52 +05:30
thecosmos dffff2d672 Docs fix 2019-05-22 11:16:52 +05:30
thecosmos b0c659dd2e Docs changes 2019-05-22 11:13:46 +05:30
thecosmos 3e485c1e94 Include exceptions 2019-05-22 10:57:36 +05:30
thecosmos 480fdc556e Return None when guild has no icon 2019-05-22 10:57:21 +05:30
thecosmos 00a3eff7e8 Version change 2019-05-21 08:47:41 +05:30
thecosmos 10d3fecf83 Docs changes 2019-05-21 08:42:49 +05:30
thecosmos 349195f953 Change version 2019-05-21 01:01:31 +05:30
thecosmos 2ceb308fae Add Exceptions 2019-05-21 01:00:29 +05:30
thecosmos 57b810a8c4 Caching user object to flask session was bad idea 2019-05-21 00:30:06 +05:30
thecosmos c7d0433ea9 Caching user object to flask session was bad idea 2019-05-21 00:29:48 +05:30
thecosmos 7c8392613c Docs change 2019-05-21 00:18:35 +05:30
thecosmos c85b84bd0a Add user property 2019-05-21 00:15:15 +05:30
thecosmos 71404b1d93 Cache discord User object to flask session 2019-05-20 23:49:13 +05:30
thecosmos 18030f5c0e Minor change 2019-05-20 21:17:50 +05:30
thecosmos 3c5d221b70 Add authorized property 2019-05-20 21:10:21 +05:30
thecosmos ff6c6a705b Version change 2019-05-20 09:46:34 +05:30
thecosmos 094a9d041e New test suits 2019-05-20 09:46:05 +05:30
thecosmos 93fafcc9d1 Add revoke method to purge discord session data 2019-05-20 09:45:48 +05:30
thecosmos f91bdca7d9 Prefixed session data with discord to allow users to have their own other OAuth sessions 2019-05-19 17:45:04 +05:30
thecosmos bf49390a4c Docs fixes 2019-05-09 16:25:54 +05:30
thecosmos 53fed2b543 Fixed tabs 2019-05-09 15:46:33 +05:30
thecosmos cfd116b003 Fixed tabs 2019-05-09 15:46:06 +05:30
thecosmos 62b6f61cd7 Fixed tabs 2019-05-09 15:44:03 +05:30
thecosmos 43e43f8f42 Merge branch 'master' of https://github.com/thec0sm0s/Flask-Discord 2019-05-09 15:41:24 +05:30
thec0sm0sandGitHub 6812ea2106 Update README.md 2019-05-09 15:40:39 +05:30
thec0sm0sandGitHub e283b1e511 Update README.md 2019-05-09 15:40:18 +05:30
thec0sm0sandGitHub 0d6a497a65 Update README.md 2019-05-09 15:39:13 +05:30
thecosmos f96fc4fac0 Packaging fixes 2019-05-09 15:34:12 +05:30
thecosmos b1a4c5c5a3 Tried import fix 2019-05-08 23:56:13 +05:30