44a44e938f
Reformat entire project with ruff instead of black
2025-08-18 20:16:10 -04:00
50caa3c82c
Add support for components V2
...
Co-authored-by: Michael H <michael@michaelhall.tech >
Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com >
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com >
Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com >
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com >
2025-08-13 20:37:23 -04:00
aa5f4bdd7a
Fix poll parameter defaulting to MISSING instead of None for Context.send
2025-06-20 14:27:37 -04:00
470323493e
Pass BotT type argument to DeferTyping
2025-02-19 17:14:06 -05:00
8953938a53
Update Pyright to v1.1.394
2025-02-18 03:29:09 -05:00
776fc2251d
[commands] Use interaction response within Context.send
2025-02-18 02:21:45 -05:00
ca85782b35
[commands] Fix Context.defer unconditionally deferring
2024-10-13 14:26:40 -04:00
e43bd8692c
Add support for Polls
...
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com >
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com >
Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com >
2024-05-10 06:14:12 -04:00
2e2f51fd5c
First pass at supporting user apps
...
Co-authored-by: red <red@kalab.sk >
Co-authored-by: Vioshim <63890837+Vioshim@users.noreply.github.com >
2024-05-04 23:25:01 -04:00
630b2a1e55
Update pyright version
2023-07-01 18:26:27 -04:00
e870bb1335
Add constant for the default file size limit
2023-05-19 21:21:37 -04:00
1deb5bf82d
[commands] Add Context.filesize_limit property
2023-05-19 20:37:03 -04:00
2ddb9d22ba
Add overloads to reply and send
2023-03-30 08:36:33 -04:00
d523fc4a83
[commands] Add silent kwarg to Context.send
2023-02-09 02:51:23 -05:00
23bcb07d2b
[commands] Fix generic arg on Context.interaction
2023-02-01 07:46:31 -05:00
7365dd1bd2
[commands] Allow delete_after in Context.send on ephemeral messages
2022-10-26 04:29:25 -04:00
6ab6b2cb96
[commands] Fix Context.from_interaction ignoring command_failed
2022-08-30 05:08:11 -04:00
9ce1541775
Rename Interaction.original_message to original_response
2022-08-08 08:11:19 -04:00
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions
2022-07-04 21:48:36 -04:00
c9f777c873
Fix type annotations to adhere to latest pyright release
2022-06-12 15:30:45 -04:00
36f039a1bf
[commands] Fix interaction baton not being set during Context creation
2022-05-30 08:50:19 -04:00
3dddddc8f9
[commands] Change Context.typing to defer for interaction contexts
2022-05-22 21:49:27 -04:00
7b65be9d25
[commands] Fix broken None reference
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
2022-05-04 23:34:49 -04:00
8699d2139a
Improve generic duck type programming with PartialMessageable
...
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
2022-05-03 10:49:52 -04:00
5357b9319b
[commands] Ignore delete_after for ephemeral interaction sends
2022-04-21 02:07:37 -04:00
84e6b9283d
[commands] Fix delete_after not working with interaction Context.send
2022-04-19 22:14:11 -04:00
cd0d6749ea
[commands] Fix Context.reply not working with expired interactions
2022-04-19 22:09:53 -04:00
4fb1309e2a
[commands] Mock interaction context prefix
...
Most user-level code probably expects the prefix to be valid and not
None, so mocking it to ensure it's at least a string is probably for
the best.
2022-04-14 19:12:16 -04:00
fa3a4c109b
[commands] Fix Context.reply not working for hybrid commands
2022-04-12 20:15:10 -04:00
c1892131a6
[commands] Fix Context docstring missing Interaction ref
2022-04-12 20:15:10 -04:00
840eb577d4
[commands] Add initial implementation of hybrid commands
...
Hybrid commands allow a regular command to also double as a slash
command, assuming it meets the subset required to function.
2022-04-12 20:15:10 -04:00
55c5be78cf
[commands] Implement commands.parameter
2022-04-04 18:01:21 -04:00
0f18d93e47
Remove unused imports
2022-04-02 04:58:39 -04:00
3d914e08e0
[commands] Add Context.current_argument
2022-04-01 16:24:14 -04:00
29668c51ae
[commands] Revert back to older help command implementation
...
The newer implementation did not play nicely with spawned tasks and
accessing HelpCommand.context, which was a frequent pain point when
writing paginated help commands.
2022-03-31 02:46:42 -04:00
fafc5b13f6
[commands] Rework help command to avoid a deepcopy on invoke
2022-03-19 06:34:19 -04:00
1192d842e1
Fix some type checker errors and remove some type ignores
...
Caught from an upgraded Pyright
2022-03-16 01:46:58 -04:00
5aa696ccfa
Fix typing issues and improve typing completeness across the library
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
Co-authored-by: Josh <josh.ja.butt@gmail.com >
2022-03-13 23:52:10 -04:00
88b520b5ab
Reformat code using black
...
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
2022-02-20 08:04:58 -05:00
dc19c6c7d5
Add positional-only arguments in more places
2022-02-19 20:28:01 -05:00
b2ac327bd8
[commands] Fix a small typo in Context.invoke docs
2021-08-27 16:02:10 -04:00
f3cb197429
[commands][types] Type hint commands-ext
2021-08-19 19:51:26 -04:00
757cfad38f
Type up **kwargs of various methods
2021-05-10 20:24:48 -04:00
3864fb37a0
Fix various reference issues in documentation
...
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com >
2021-05-06 07:51:07 -04:00
09f3f2111c
[commands] Add Context.current_parameter
2021-04-19 04:41:32 -04:00
5ea5f32479
[commands] Fix missing re
import in Context
2021-04-15 08:04:24 -04:00
ed3c141f5e
[commands] Add clean_prefix
attribute to commands.Context
2021-04-14 22:09:40 -04:00
89456022cf
Add __all__
to remaining modules
2021-04-07 02:30:32 -04:00
adaf7c6192
[commands] Use positional only parameter for Context.invoke
2021-04-04 07:04:01 -04:00
9d39b135f4
Modernize code to use f-strings
...
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00