Commit 9cd8378
feat: merge enhanced (#895)
* feat: new Command object
There are still countless TODOs, this is a progress commit
* fix: import error
* feat: option decorator
btw i havent tested any of these
* fix: attempt to fix circular import
* fix: circular import
* refactor: replace errors with LibraryException
* refactor: few small refactors
* refactor: test
* feat: implement Command obj in decorators
I still haven't tested these btw
* feat: working subcommand system
Have not made it work in extensions yet
* feat: more customizable subcommand system
* feat: working Command system in Extensions
* refactor: add a TODO
* refactor: tidy up the code, improve coro calling
* refactor: rename Command.base to Command.name
* feat: better group behavior
* refactor: replace a few more base= with name=, tidy up code
* refactor: remove client field from Command and properly teardown commands
* refactor: different method of looping
* feat: implement default_scope functionality
* refactor: remove options param from Command.group()
* refactor: make autocomplete work, change typehints, make user and message command rely on command, properly sync Command objects inside Extensions
* feat: implement autodefer and spread_to_rows
These are put in a new utils.py file
* fix: commands and autocomplete with self not passed when inside Extensions
* style: add typehints
* refactor: tweak default scope setting
* docs: some docstrings filled in
* docs: more docstrings, organization of code
* refactor: move resolving commands outside of __sync
* refactor: change __all__ from list to tuple
* fix: subcommands error with variables
* fix: incorrect error
* docs: utils.py docstrings
* feat: new way of creating an ActionRow (pun intended)
* refactor: make option decorator better
* refactor: change Command.self to Command.extension
* docs: fix incorrect typehint
* docs: modify docstring
* docs: new docs page
* docs: add doc file
* docs: move line
* docs: modify docstring of spread_to_rows
* refactor: rename variables
* feat: implement Command.error decorator
* fix: typehint
* docs: attempt to fix parameters of Client docstring
* ci: correct from checks.
* docs: fix docstring
* style: delete a blank line
* docs: update quickstart
* ci: correct from checks.
* docs: modify quickstart
* docs: document new features
* docs: testing
* docs: testing
* docs: make it look good
* docs: fix formatting
* docs: add migration docs
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent e4cbb1c commit 9cd8378
File tree
14 files changed
+1385
-172
lines changed- docs
- interactions
- api
- http
- models
- client
- models
14 files changed
+1385
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments