4153 Commits

Author SHA1 Message Date
Rapptz
405c445093 [commands] Unwrap transformers when considering them as converters 2022-04-21 03:19:11 -04:00
Rapptz
5357b9319b [commands] Ignore delete_after for ephemeral interaction sends 2022-04-21 02:07:37 -04:00
Rapptz
de941ababe Add Colour.from_str factory method
This moves the command extension parsing code over to the main library
since it can be potentially useful for others.
2022-04-20 06:49:28 -04:00
Rapptz
84e6b9283d [commands] Fix delete_after not working with interaction Context.send 2022-04-19 22:14:11 -04:00
Rapptz
cd0d6749ea [commands] Fix Context.reply not working with expired interactions 2022-04-19 22:09:53 -04:00
lightningyx
19fb8ac447
Add narrowed overloads for edit methods on channels 2022-04-19 16:46:38 -04:00
Rapptz
1d97a35385 [commands] Fix hybrid commands not respecting default annotations 2022-04-19 12:08:22 -04:00
Rapptz
987235d564 Only call async setup if the loop sentinel hasn't been changed 2022-04-19 04:27:52 -04:00
Rapptz
6113f856b6 [commands] Dispatch command events for hybrid commands 2022-04-19 01:40:16 -04:00
Cryptex
7d2e5be3a1
[commands] Allow DynamicCooldownMapping factory to return None 2022-04-19 01:25:40 -04:00
Steve C
fd5886a058
Add ValueError to PartialEmoji.read docstring 2022-04-19 01:25:11 -04:00
Rapptz
2e02f618f0 Add support for enum values that aren't int, str, or float
This coerces them into string options to allow them to be transformed
in the actual code.
2022-04-18 20:15:45 -04:00
will
88b22611bc
Fix utils.oauth_url doc in slash commands FAQ 2022-04-18 19:15:45 -04:00
PythonCoderAS
c2391cf673
Add some slash commands FAQs
Co-authored-by: ChesterWOV <99033489+ChesterWOV-DPY@users.noreply.github.com>
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-18 17:41:24 -04:00
Rapptz
2b3cc8fe10 Add Member.display_icon to get the rendered member icon 2022-04-18 17:26:30 -04:00
Mad Cat
c885aa0b99
Add NotFound to ban docstring 2022-04-18 17:23:40 -04:00
Devon R
54d2ff9caa
Hopefully fix checks triggering for crowdin download 2022-04-18 17:21:48 -04:00
Cobalt
6e6d16093c
Update extensions primer in line with async breaking changes 2022-04-18 06:26:50 -04:00
lightningyx
482bd11ac7
Fix Guild.fetch_member docstring
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-18 06:26:32 -04:00
Lilly Rose Berner
15a6a04622
[tasks] Fix Task.failed() only being True while error handler runs 2022-04-18 06:22:53 -04:00
Willy
5456c0cae9
Add TextInput to Item docstring 2022-04-17 05:28:29 -04:00
Josh
9fcb3c8871
[commands] Add overload to run_converters 2022-04-17 05:28:16 -04:00
Daniel Grant
18a6881fd9
Add NotFound to unban docstring 2022-04-17 02:19:20 -04:00
Harmon
1bfe6b2bb1
Fix support for guilds decorator with context menu commands 2022-04-15 05:00:24 -04:00
jack1142
f9ead92239
[commands] Change Parameters header to Attributes in HybridGroup 2022-04-15 03:23:56 -04:00
Rapptz
80aa45ed31 [commands] Skip ws before processing arguments in Greedy transformer 2022-04-15 03:21:36 -04:00
Rapptz
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
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods 2022-04-14 19:06:22 -04:00
Jonah Lawrence
862eba1e59
Add filename and description kwargs for to_file 2022-04-14 19:04:05 -04:00
Rapptz
9ff90d7863 Copy internal attributes for command decorator state
This allows for copies to not clear the state the decorators had
set prior.
2022-04-14 17:45:27 -04:00
Rapptz
e541be0427 Fix tests from failing 2022-04-14 06:46:33 -04:00
Rapptz
bc07a02f68 [commands] Fix type hints for hybrid command decorators 2022-04-14 05:14:48 -04:00
Rapptz
4951231a7c Remove command parameter from Group.on_error callback
Similar to the CommandTree.on_error removal, this one can be retrieved
using Interaction.command
2022-04-13 22:45:06 -04:00
Rapptz
ce15df4275 [commands] Allow commands.Range inside typing.Union or typing.Optional 2022-04-13 22:43:11 -04:00
Rapptz
cdf442bc32 Fix signature detection in CommandTree.error decorator 2022-04-13 22:30:39 -04:00
Rapptz
3f4fb91328 Change CommandTree.on_error to only take two parameters
The command that failed can be retrieved using Interaction.command
so having it as a parameter doesn't make much sense.
2022-04-13 22:29:27 -04:00
Rapptz
83fae4f0fa Add CommandTree.clear_commands 2022-04-13 22:20:05 -04:00
Rapptz
8a1800bd12 [commands] Add support for setting a fallback slash subcommand
This allows the group callback to be invoked as a slash subcommand
2022-04-13 20:30:11 -04:00
Rapptz
e9ff6b4be8 [commands] Fix broken documentation references 2022-04-13 18:49:39 -04:00
Rapptz
5c61f2af48 [commands] Add ForumChannelConverter to the converter mapping 2022-04-13 17:45:54 -04:00
Rapptz
141d9f4c71 [commands] Add ForumChannelConverter converter 2022-04-13 17:44:03 -04:00
Rapptz
d98ee567d4 Add Guild.forums property
Ran an informal poll in the official server and this name won over the
alternative Guild.forum_channels property name
2022-04-13 17:40:16 -04:00
Rapptz
7a52aa3764 [commands] Force HybridGroup to always have invoke_without_command 2022-04-13 17:14:21 -04:00
Rapptz
49f330b4a3 Fix Thread.jump_url docstring 2022-04-13 17:12:44 -04:00
Rapptz
b476757720 [commands] Fix type hints for checks, hooks, and error handlers 2022-04-13 03:07:58 -04:00
Rapptz
737ff5beaf Update Pyright to 1.1.237 2022-04-13 02:30:00 -04:00
Omkaar
a6ce49833c
Add jump_url property to Threads 2022-04-13 02:00:43 -04:00
Rapptz
242d3f7ab7 [commands] Add Bot.hybrid_group and Bot.hybrid_command decorators 2022-04-12 21:17:00 -04:00
Snaptraks
0fa9bfc925
Correct order of arguments in View.on_error 2022-04-12 21:15:16 -04:00
Rapptz
daa32e3463 Use pyright CI action and remove --verbose from black 2022-04-12 20:51:02 -04:00