Steve C
fd5886a058
Add ValueError to PartialEmoji.read docstring
3 years ago
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.
3 years ago
will
88b22611bc
Fix utils.oauth_url doc in slash commands FAQ
3 years ago
PythonCoderAS
c2391cf673
Add some slash commands FAQs
Co-authored-by: ChesterWOV <[email protected] >
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
2b3cc8fe10
Add Member.display_icon to get the rendered member icon
3 years ago
Mad Cat
c885aa0b99
Add NotFound to ban docstring
3 years ago
Devon R
54d2ff9caa
Hopefully fix checks triggering for crowdin download
3 years ago
Cobalt
6e6d16093c
Update extensions primer in line with async breaking changes
3 years ago
lightningyx
482bd11ac7
Fix Guild.fetch_member docstring
Co-authored-by: Danny <[email protected] >
3 years ago
Lilly Rose Berner
15a6a04622
[tasks] Fix Task.failed() only being True while error handler runs
3 years ago
Willy
5456c0cae9
Add TextInput to Item docstring
3 years ago
Josh
9fcb3c8871
[commands] Add overload to run_converters
3 years ago
Daniel Grant
18a6881fd9
Add NotFound to unban docstring
3 years ago
Harmon
1bfe6b2bb1
Fix support for guilds decorator with context menu commands
3 years ago
jack1142
f9ead92239
[commands] Change Parameters header to Attributes in HybridGroup
3 years ago
Rapptz
80aa45ed31
[commands] Skip ws before processing arguments in Greedy transformer
3 years ago
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.
3 years ago
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods
3 years ago
Jonah Lawrence
862eba1e59
Add filename and description kwargs for to_file
3 years ago
Rapptz
9ff90d7863
Copy internal attributes for command decorator state
This allows for copies to not clear the state the decorators had
set prior.
3 years ago
Rapptz
e541be0427
Fix tests from failing
3 years ago
Rapptz
bc07a02f68
[commands] Fix type hints for hybrid command decorators
3 years ago
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
3 years ago
Rapptz
ce15df4275
[commands] Allow commands.Range inside typing.Union or typing.Optional
3 years ago
Rapptz
cdf442bc32
Fix signature detection in CommandTree.error decorator
3 years ago
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.
3 years ago
Rapptz
83fae4f0fa
Add CommandTree.clear_commands
3 years ago
Rapptz
8a1800bd12
[commands] Add support for setting a fallback slash subcommand
This allows the group callback to be invoked as a slash subcommand
3 years ago
Rapptz
e9ff6b4be8
[commands] Fix broken documentation references
3 years ago
Rapptz
5c61f2af48
[commands] Add ForumChannelConverter to the converter mapping
3 years ago
Rapptz
141d9f4c71
[commands] Add ForumChannelConverter converter
3 years ago
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
3 years ago
Rapptz
7a52aa3764
[commands] Force HybridGroup to always have invoke_without_command
3 years ago
Rapptz
49f330b4a3
Fix Thread.jump_url docstring
3 years ago
Rapptz
b476757720
[commands] Fix type hints for checks, hooks, and error handlers
3 years ago
Rapptz
737ff5beaf
Update Pyright to 1.1.237
3 years ago
Omkaar
a6ce49833c
Add jump_url property to Threads
3 years ago
Rapptz
242d3f7ab7
[commands] Add Bot.hybrid_group and Bot.hybrid_command decorators
3 years ago
Snaptraks
0fa9bfc925
Correct order of arguments in View.on_error
3 years ago
Rapptz
daa32e3463
Use pyright CI action and remove --verbose from black
3 years ago
Rapptz
1931b0eb75
[commands] Ensure hybrid app command receives copied wrapper command
3 years ago
Rapptz
393fdde037
[commands] Add support for Greedy for hybrid commands
3 years ago
Rapptz
1004cf2059
[commands] Unconditionally replace default if it's set
Handles degenerate `x: int = commands.param(default=10)` case
3 years ago
Rapptz
70d2522e7e
[commands] Unwrap CommandInvokeError if the cause is CommandError
3 years ago
Rapptz
3bb4d3bd6d
Allow internal library enums to be used as an annotation
3 years ago
Rapptz
65418414ea
[commands] Refactor parameter replacement to be less brittle
If a parameter works as-is as a transformer or a built-in then it
will always be taken rather. This way, the custom behaviour is done
as a fallback in case it doesn't work natively with app commands.
This also allows things that are hybrid transformers and converters
to work transparently.
3 years ago
Rapptz
896932faf1
[commands] Add Range converter
This allows hybrid commands to also have a range annotation
3 years ago
Rapptz
3c4b22b623
[commands] Fix transformers no longer working as annotation
3 years ago
Rapptz
9d05f55ddb
[commands] Fix Optional handling when the inner type is a converter
3 years ago
Rapptz
f072edfdfc
[commands] Properly support commands.param in hybrid commands
3 years ago