60 Commits

Author SHA1 Message Date
Zomatree a512546150 bump version v0.1.0 2021-10-23 17:05:51 +01:00
Zomatree 7efc943281 run isort 2021-10-23 17:04:28 +01:00
Zomatree f4b722ef3a add __call__ and cls arg to commands.command 2021-10-23 17:03:12 +01:00
Zomatree 17d078357c remove unneeded imports 2021-10-23 17:02:53 +01:00
rockboy987 c832bae971 Add permissions (#17)
* Add permissions

* Add set_permission methods for server and channel

* Add to docs

* Minor fix

* Apply suggestions from code review
2021-10-21 07:01:07 +01:00
Zomatree 9fd3984669 Merge branch 'master' of github.com:Zomatree/revolt.py 2021-10-21 06:56:04 +01:00
Zomatree 364d669eaa replace shlex 2021-10-21 06:54:24 +01:00
Zomatree 6e7979c7bb fix typo 2021-10-21 06:53:49 +01:00
Zomatree 138c5b27d2 add docs for commands 2021-10-21 06:53:23 +01:00
Zomatree 1cbf024f18 remove file - the secret is invalid anyway 2021-10-19 18:09:33 +01:00
Zomatree d907bf6d09 spelling mistake 2021-10-17 02:53:20 +01:00
Zomatree b4bbc700f9 try workflow fix 2021-10-17 02:50:28 +01:00
Zomatree 1bdbbf8d21 add basic command handler 2021-10-17 02:47:40 +01:00
Zomatree 542d1052d6 add more events and fix bugs 2021-10-17 02:47:07 +01:00
Joshua Nixon 2b05fadf77 Added missing return statements to get_... in Client (#14) 2021-09-13 17:48:33 +01:00
rockboy987 db9b78d14e Add edit and delete methods for Message and handle MessageUpdate and MessageDelete events (#13)
* Add edit and delete methods to Message

Add handlers to update state on message update and delete

* Fix typehint

Add missing objects in __all__
2021-09-08 10:03:30 +01:00
Zomatree d0ba93b9be add enums to revolt namespace 2021-09-05 19:18:05 +01:00
Zomatree eed4010002 fix #12 2021-09-05 19:17:40 +01:00
null e3bb82c71f refactor: add __slots__ to class definitions to save memory (#12)
* refactor: add __slots__ to class definitions to save memory

* Update revolt/channel.py

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>

* Update revolt/client.py

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>

* revert changes

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>
2021-09-04 16:33:05 +01:00
rockboy987 a55ab98877 adding remaining messaging endpoints to http.py (#5)
* adding remaining messaging endpoints

* Apply suggestions from code review

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>

* Apply requested changes

* Fix typo

* Add typing overloads

* Fix search_messages route

* Make include_users default to False instead of None

* Fix fetch_messages

* Fix missing comma

* Add SortType to __all__

* Update revolt/http.py

* Update revolt/http.py

* Update revolt/http.py

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>
2021-09-03 22:55:45 +01:00
Zomatree 56028ab44d Update issue templates 2021-09-02 22:17:43 +01:00
Zomatree 8e8a74021e Merge pull request #10 from ppotatoo/master
Run isort and add __all__ to all files
2021-09-02 22:10:16 +01:00
ppotatoo 2833aff90a Forgot a comma 2021-09-02 15:27:54 -04:00
ppotatoo fdfd96e224 Trailing comma and add missing things in __all__ 2021-09-02 15:23:01 -04:00
ppotatoo 553fbffa74 Ran isort over directory and added __all__ 2021-09-02 15:16:25 -04:00
Zomatree 9a53fb35d7 fix pyright deps 2021-09-02 16:18:58 +01:00
Zomatree 5c2ee151c1 update flattern_attributes 2021-09-02 15:31:07 +01:00
Zomatree 8a0930f370 add pyright action 2021-09-02 15:23:43 +01:00
Zomatree df44a94ddf Merge pull request #6 from XiehCanCode/patch-2
fix typehint in `channel_factory` function
2021-09-02 14:51:28 +01:00
Zomatree 2a7ff49214 Merge pull request #7 from XiehCanCode/patch-3
fix typehint in `http`
2021-09-02 14:51:06 +01:00
Zomatree aa26891fb1 Merge pull request #9 from rockboy987/wait_for
Add timeout to client.wait_for
2021-09-02 14:50:12 +01:00
rockboy987 d352b04c85 Add timeout to client.wait_for 2021-09-02 16:25:15 +05:30
Xieh ab2b8cc8f0 fix typehint in http 2021-09-02 02:15:12 +00:00
Xieh 5e8c2a590f fix typehint in channel_factory function 2021-09-02 01:50:52 +00:00
Zomatree 64fe114650 Merge pull request #4 from XiehCanCode/patch-1
change min python version to 3.9+
2021-08-31 17:59:05 +01:00
Xieh b33a87a1a3 change min python version to 3.9+ 2021-08-31 16:46:59 +00:00
Zomatree f37eb6bbc1 remove unessessary import 2021-08-31 14:20:45 +01:00
Zomatree fc330ee589 add basic http functions 2021-08-31 14:08:51 +01:00
Zomatree cdda2e6d7d add docs to readme 2021-08-30 17:38:02 +01:00
Zomatree 973c7be666 add missing dep to docs 2021-08-30 17:13:09 +01:00
Zomatree 7ba69af3b8 make namedtuples documented 2021-08-30 17:11:30 +01:00
Zomatree 3a7e7b3a00 fix user relations 2021-08-30 16:35:06 +01:00
Zomatree 37e3da5ec7 fix error with optional data 2021-08-30 16:25:09 +01:00
Zomatree 013885dfb4 add enums, add more stuff 2021-08-30 16:22:16 +01:00
Zomatree 6f50ae16db add example 2021-08-30 16:20:55 +01:00
Zomatree 6cc561ae1a fix line lengths 2021-08-29 21:58:49 +01:00
Zomatree b117d5e53f add version 2021-08-29 21:49:51 +01:00
Zomatree 0fa0b67362 update rtd config 2021-08-29 21:39:54 +01:00
Zomatree 789fb427de update rtd config 2021-08-29 21:37:59 +01:00
Zomatree 5d15c279bd add missing libs for docs 2021-08-29 21:25:08 +01:00