shea
d537f5f50f
Fix @dm_only() decorator to correctly restrict command to DMs only
- Updated the decorator to explicitly disable guild and private channel contexts
- Ensured that only DM context is allowed by setting allowed_contexts.dm_channel = True
3 months ago
Rapptz
8953938a53
Update Pyright to v1.1.394
5 months ago
PythonCoderAS
9da131ed26
Fix variance typing issue with CommandTree.error decorator
9 months ago
Andrin
b207c8a1ac
[commands] Add perms object param to default_permissions decorator
Closes #9951
9 months ago
Michael H
3e168a93bf
Improve typing of app command transformers
This allows subclasses of transformers to specify a specialization for
interaction without violating covariance of parameter types
10 months ago
Rapptz
df4b1c88df
Move MissingApplicationID to top-level discord namespace
11 months ago
Rapptz
c41cadfa91
Fix introduced potential TypeError with _get_command_error
11 months ago
Pipythonmc
a183a56dd9
Fix _get_command_error improperly handling some error messages
11 months ago
Rapptz
837bc35b87
Add missing versionadded for a few decorators
1 year ago
Soheab
cc32fb364b
Add notes about contexts and installation_types availability
1 year ago
Etwas
b5ada0a662
Fix merge methods for AppCommandContext and AppInstallationType
1 year ago
Michael H
a1206dfde8
Fix typing of various AppCommand decorators
1 year ago
Danny
2e2f51fd5c
First pass at supporting user apps
Co-authored-by: red <red@kalab.sk>
Co-authored-by: Vioshim <63890837+Vioshim@users.noreply.github.com>
1 year ago
Josh
4e03b170ef
Update pyright version
1 year ago
Akai
bd402b486c
Correct typo in error message: "error" to "autocomplete"
2 years ago
Rapptz
f617d01eee
Refactor human_join into its own private helper function
2 years ago
owocado
cf79af2dc4
Fix typehints for __class_getitem__ in Transform and Range
2 years ago
ItsWilliboy
555940352b
Fix error when app_commands.Group misses a name
2 years ago
Rapptz
576ab269e8
Fix AttributeError in CommandSyncFailure due to APPLICATION_COMMAND_TOO_LARGE
2 years ago
Rapptz
9e2f2cb3af
Log suppressed autocomplete exceptions
2 years ago
Josh
630b2a1e55
Update pyright version
2 years ago
Rapptz
223e95a252
Catch TypeError for unhashable annotation types
2 years ago
Rapptz
c8e2644497
Fix custom attributes not being copied over for subclassed Group
2 years ago
Rapptz
0adef0ec89
Update auto_archive_duration documentation
Fix #9351
2 years ago
Rapptz
4e09c34bbb
Suppress exceptions from invoking autocomplete
2 years ago
Rapptz
93ed1646d2
Cleanup some private utilities in app_commands.commands
3 years ago
Rapptz
bbba8c650f
Add missing generic parameters on various Interaction parameters
3 years ago
Trevor
2e737e70de
Correct app command decorators that use Interaction
3 years ago
Rapptz
3ff88db768
Update pyright to 1.1.289
3 years ago
chrispy
7f796a68ca
Add str and float examples to app_commands.Range documentation
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
3 years ago
rdrescher909
c0dfdf1bef
Add autocomplete warning about user input
3 years ago
ster
95b6bd8782
Add coro tag to docstrings that were missing it
3 years ago
Omkaar
c30a2f3ca0
Refactor certain f-strings and literals
3 years ago
Rayzeq
e3b5fbd9e6
Update Transformer.choices docs to mention limit
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
3 years ago
Rapptz
217662ca44
Fix detection of overridden binding error handler
Closes #8963
3 years ago
Rapptz
cd04f6ca41
Revert Group.on_error copy due to failing tests
3 years ago
Rapptz
6e5392c6e2
Fix Tree.on_error still being called when a bound error handler is set
Closes #8455
3 years ago
Rapptz
6bec7e9d97
Fix detection of overriden Group.on_error and ensure they're copied
3 years ago
ow0x
03d7a9a719
Fix typo in app_commands.ContextMenu docstring
3 years ago
Ryu Juheon
e1961676a9
Fix import to appease mypy's import resolution
3 years ago
Rapptz
a53b609e37
Fix ForumChannel annotation not working for app_commands
Closes #8472
3 years ago
Ionite
6981eb69c4
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`,
`__class__.__name__!r` to the standard form of
`__class__.__name__`
3 years ago
Narmy
035dd812de
Add note about renamed options in the Namespace
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
3 years ago
Rapptz
771476a8d8
Fix _errors key being visible in CommandSyncError in some cases
3 years ago
Rapptz
5cc6af5917
Fix CommandSyncFailure raising for other 400 error types
3 years ago
Rapptz
27b19ed582
Change error message for unbound callbacks in ContextMenu
3 years ago
Rapptz
9ea6ee8887
Add support for ForumChannel annotations in app commands
3 years ago
Lilly Rose Berner
2d180489ce
Fix KeyError constructing groups when no module is present
3 years ago
Rapptz
2e37e47e38
Fix autocomplete documentation to mention it only passes strings
3 years ago
Rapptz
b92fd65707
Document app_commands.Choice limits
3 years ago