Rapptz
49e4339478
[commands] Ensure Command.extras are copied
Fix #8309
3 years ago
Bryan Forbes
b9795979ac
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
3 years ago
Rapptz
f15d7e12b2
[commands] Fix Annotated not working with FlagConverter
3 years ago
Rapptz
2e9dfb3e12
Fix various a -> an typos across the library
Closes #8301 , #8287
3 years ago
Maya
e73c1a3b9e
[commands] Fix typing error with CheckAnyFailure
3 years ago
Bryan Forbes
b891fda6a7
Fix various generics throughout the public interface
Fix CooldownMapping generic typing and ensure other public methods
have proper generics
3 years ago
Rapptz
76ce315a83
[commands] Fix type annotations to use Union instead of |
3 years ago
Mikey
d92309e19d
[commands] Change cooldowns to take context instead of message
3 years ago
Sebastian Law
b17fb67341
[commands] Unload cog when command registration fails in _inject
3 years ago
z03h
b4d2395a5e
[commands] change Range to raise BadArgument for invalid values
3 years ago
Rapptz
360836ce10
[commands] Add support for Range[str, ...]
3 years ago
Bryan Forbes
547fcb93d1
[commands] Change Command.extras to match typing in app commands
3 years ago
will
d813cbecbe
Fix typo and capitalizations in docs
3 years ago
Rapptz
495854bcb3
Change stderr prints to use the logging module instead
3 years ago
James Hilton-Balfe
5858c44f63
[docs] Add async with documentation for Client
Co-authored-by: Rapptz <[email protected] >
3 years ago
Daniel Diaz
388941924f
[commands] Document argument attribute in BadInviteArgument
3 years ago
Josh
52a5f10307
Fix type annotations to adhere to latest pyright release
3 years ago
Wayoshi
49c059b3ca
[commands] fix case_insensitive bug in parse_flags
Co-authored-by: Danny <[email protected] >
3 years ago
z03h
1c1636875c
[commands] Fix errors when DynamicCooldown returns None
3 years ago
z03h
0d05cd273e
Add VoiceChannel and Thread to isinstance checks
3 years ago
z03h
33039dbd25
[commands] Change FlagConverter to always raise BadFlagArgument
3 years ago
Rapptz
3f4d4aad17
[commands] Add support for discord.Attachment converters
3 years ago
Michael H
3a1cda5ff2
[commands] Fix typing of check/check_any
This changes the type information of check decorators to return a
protocol representing that the decorator leaves the underlying object
unchanged while having a .predicate attribute.
resolves #7949
3 years ago
Varun J
5afad9f7cc
[commands] fix signature when displayed_default is missing
This makes it so that passing an empty string (or MISSING) to the
displayed_default of commands.Parameter not show up as [name=] or [name=...]
3 years ago
Rapptz
8f4f35ed51
Fix remaining --verifytypes related errors
3 years ago
Rapptz
18120c4726
Update to pyright 1.1.242
3 years ago
Mikey
f14139dc8f
[commands] fix BucketType.default bypassing dynamic_cooldown
3 years ago
Rapptz
0221a55aa6
[commands] Add support for typing.Annotated
3 years ago
Florian Spieß
8401316e48
[commands] Allow subtracting multiple tokens from cooldown
3 years ago
Rapptz
b59628d69b
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.
3 years ago
Josh
1307883f56
[commands] Add overload to run_converters
3 years ago
Rapptz
552324fd02
[commands] Add ForumChannelConverter to the converter mapping
3 years ago
Rapptz
5b7cc33f79
[commands] Add ForumChannelConverter converter
3 years ago
Rapptz
e1de62b494
[commands] Fix type hints for checks, hooks, and error handlers
3 years ago
Rapptz
a354ecfa89
[commands] Add Range converter
This allows hybrid commands to also have a range annotation
3 years ago
dolfies
3ffd0b073b
Normalize include_applications -> with_applications
2 years ago
dolfies
68d1b40239
Fix various app command bugs, improve documentation, implement missing fields
3 years ago
TripleM
aa69701161
Remove direct discord.utils.MISSING references ( #290 )
Co-authored-by: dolfies <[email protected] >
3 years ago
dolfies
a777327d8e
Implement Commands backend v2
3 years ago
dolfies
cfe58eeb1f
Revert all voice receive changes
This won't be making its way into 2.0 and needs a ton of work. Now lint passes!
3 years ago
dolfies
8eaa26d479
Various fixes (docs, events, enums, exports
3 years ago
dolfies
8fcca3183a
Rebase to latest upstream
3 years ago
dolfies
50ff16ede6
Rebase to latest upstream
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
957a484306
Run black
3 years ago
Bryan Forbes
062f4d6f87
Change some methods to use positional-only marker
Co-authored-by: Danny <[email protected] >
3 years ago
Stocker
eca4727593
[commands] Add missing and fix existing type annotations
3 years ago
Josh
46b3e036e2
[commands] Fix help error/invoke hooks not running
3 years ago
jack1142
6dc314628e
Make guild and guilds args in Bot.remove_cog() keyword-only
3 years ago
Josh
1b70fad5ec
[commands] Fix exceptions in HelpCommand
3 years ago