ster
c273f26805
Add coro tag to docstrings that were missing it
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
Josh
52a5f10307
Fix type annotations to adhere to latest pyright release
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
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
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
jack1142
6dc314628e
Make guild and guilds args in Bot.remove_cog() keyword-only
3 years ago
Stanisław Jelnicki
47cb7d03ec
[commands] Type BotBase.help_command as Optional
3 years ago
HigherOrderLogic
3e70a4e798
Fix typo in add_cog doc
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Josh
a1c618215e
[commads] Change cog/extension load/unload methods to be async
3 years ago
Rapptz
0ef369c0fa
[commands] Automatically unload top level app commands in extensions
3 years ago
Rapptz
d68f2db7cb
[commands] Always respect guild IDs passed to cog adding and removal
Fixes #7657
3 years ago
Rapptz
446bfa78b0
[commands] Allow Cog and app_commands interopability
This changeset allows app commands defined inside Cog to work as
expected. Likewise, by deriving app_commands.Group and Cog you can
make the cog function as a top level command on Discord.
3 years ago
Alex Nørgaard
bfaee44b1f
[commands] Fix types for Bot.is_owner
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Josh
39c5a4fdc3
Fix type-errors in commands extension
3 years ago
dolfies
3c9dd09aed
Re-add self_bot and user_bot
3 years ago
Rapptz
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.
3 years ago
Josh
4dbe1af32f
Update sphinx and fix documentation issues
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
dolfies
4c2d9bc0d0
Give ext.commands some love
3 years ago
dolfies
9c5e4882ef
Initial de-botting
4 years ago
Willy
fa5a2188bb
Copy docs from Client.close() to Bot.close()
4 years ago
Josh
f3cb197429
[commands][types] Type hint commands-ext
4 years ago
thetimtoy
c4ee9dcafa
[commands] Return removed cog in Bot.remove_cog
The method now returns the removed cog, if it exists.
4 years ago
Rapptz
f56543df15
[commands] Remove function call indirection when checking author
4 years ago
Tari
36cf3c94b4
[commands] Remove Bot.self_bot
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Sebastian Law
4134a17a29
[commands] Raise error when a cog name is already registered
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
pikaninja
1c553f51fb
[commands] Use has_error_handler instead in command_error
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
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`.
4 years ago
Rapptz
862d509d2e
[commands] Add support for stripping whitespace after the prefix
This is configured with the strip_after_prefix option in `Bot.__init__`
4 years ago
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Kaylynn Morgan
1cbc537734
[commands] Allow relative paths when handling extensions
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Nadir Chowdhury
6b803acde4
[chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54
, as it has been available since Python 3.1.
4 years ago
Jaime Garcia Jr
1c3b0c02f8
Add revisions to check_once docs
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
Rapptz
874c2cd3c9
[commands] Raise CheckFailure if all bot "check once" fail
Fix #2643
5 years ago
Karthikeyan Singaravelan
25b8adc404
Import ABC from collections.abc instead of collections
This is for Python 3.9 compatibility.
5 years ago
Harmon
6f9793fe5e
Fixes and improvements for v1.3 documentation
* Add missing versionadded strings for v1.3
* Add missing versionchanged string for Message.edit
* Consistently use versionadded for attributes
* Consistently use versionchanged for parameters
* Use versionchanged for Bot.is_owner
* Fix references in v1.3 changelog
* Improve grammar in v1.3 changelog
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago