Rapptz
c77bbc4dcf
Move with_counts parameter documentation where it belongs
3 years ago
Rapptz
5b8bcaff73
Validate and bind parent in Group.add_command
3 years ago
Rapptz
7c0a9e901d
Fully initialise asyncio state in __aenter__
3 years ago
Rapptz
575eacb1bf
Change loop sentinel error to not use a tuple
This was an unintentional error
3 years ago
Rapptz
1fba54ce97
Reword DeletedMessageReference docstring to be clearer
3 years ago
Rapptz
1192d842e1
Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
3 years ago
Rapptz
6d75d2e937
Fix unnecessary type ignores in gateway
3 years ago
Rapptz
d2b69ce19a
Downgrade unnecessary type ignore into a warning instead of error
3 years ago
Rapptz
380e9118d5
Temporarily change Crowdin upload to be a manual workflow dispatch
3 years ago
Rapptz
61577677cd
Fix Guild.fetch_members limit parameter typing to be Optional
3 years ago
Rapptz
caf1c6eae4
Fix overload in StoreChannel
3 years ago
Rapptz
446c502995
Change lowercase detection to work with CJK languages
str.islower() does not properly work with characters in the Lo category
so CJK languages fail the check.
Fix #7698
3 years ago
Stocker
fd5dea4e34
Update Permissions.stage_moderator
3 years ago
Devon R
2d28d7b765
Add Crowdin actions
3 years ago
Rapptz
26457b6d50
Remove automatic defer behaviour from View and Modal
This doesn't make as much sense anymore now that
InteractionResponse.edit_message exists.
3 years ago
z03h
e5461c73b6
[commands] Check if any base in a Cog is a subclass of Group
3 years ago
Omkaar
beafaa8a8b
Change intent comments to be consistent in the examples
3 years ago
LightSage
c28c3f4440
Keep comments consistent with other before/after comments
3 years ago
Rapptz
8ced1143e3
Change missing application ID error to be more descriptive
3 years ago
Rapptz
27dd986858
Forbid Choice annotations being used with autocomplete parameters
Since the Choice are synthetic, the library doesn't have a
pre-populated list of choices to know what to use as the resulting
value.
3 years ago
Rapptz
698d1e12a1
Add CommandTree.error decorator to set on_error dynamically
3 years ago
Rapptz
2bf612cd67
Fix Client.close erroring if done before proper async initialisation
3 years ago
Rapptz
20aa6f866d
Fix CommandTree removal and getter overloads
3 years ago
Rapptz
f015b59e43
Add CommandTree.walk_commands and Group.walk_commands
3 years ago
Rapptz
5bc085ebab
Properly set root parent before copying a command's binding
3 years ago
ChesterWOV
ca4db68686
Fix grammar issue for Message.add_reaction docs
3 years ago
Rapptz
aa006f345a
Add more special methods to Namespace for ease of use.
* __getattr__ would allow it to no longer AttributeError while
simultaneously letting linters and type checkers understand that
this is a bag of dynamic attributes.
* __contains__ allows checking for the existence of an attribute
* __getitem__ allows accessing a value even if its name is not a valid
Python identifier.
3 years ago
Rapptz
f0a47f5a40
Allow single element Literal in app commands
Fix #7690
3 years ago
Stanisław Jelnicki
47cb7d03ec
[commands] Type BotBase.help_command as Optional
3 years ago
Cryptex
6cf7c4a7d7
Add message content to doc examples
This also changes the wording of Context's attributes
for consistency.
3 years ago
ChrisJL
68dbf0f882
[commands] Fix message converter not inferring channel when missing
3 years ago
Narmy
3fd8f76c61
Add missing underscore in Modal refresh method
3 years ago
Rapptz
934ab4151a
Mark state refresh methods as private with an underscore
People kept wondering what it is or what it does.
3 years ago
Lilly Rose Berner
6dd8845e4f
Fix Guild.audit_logs order being reversed without oldest_first and after
3 years ago
Rapptz
bc70ec5cfd
Change persistent view example to use new setup_hook
3 years ago
Rapptz
c95c163266
Fix background task examples
3 years ago
Rapptz
9b77331603
Change loop sentinel to provide a more descriptive error message
This way people don't think it's a bug. I imagine some people won't
read it, but at least when you point it out they might get it.
3 years ago
Rapptz
aa18e573c3
Mark MISSING as hashable to allow it to be used in dataclasses in 3.11
3 years ago
Rapptz
abcec5da9d
[tasks] Use the local timezone when comparing for the start time
Fix #7676
3 years ago
Rapptz
a4676804ec
Show inherited members in InteractionMessage
3 years ago
HigherOrderLogic
3e70a4e798
Fix typo in add_cog doc
3 years ago
Rapptz
2da6415008
Add more tests for JST regression case
3 years ago
Rapptz
c6ab67420e
Remove Embed.Empty in favour of None
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
Rapptz
603681940f
[tasks] Only correct for clock drift if an explicit time is given
3 years ago
Rapptz
f2586e9fe7
[tasks] Handle imaginary or ambiguous times due to DST transitions
3 years ago
Rapptz
f63070c071
Move migrating to v1 into a new separate file
3 years ago
Josh
a1c618215e
[commads] Change cog/extension load/unload methods to be async
3 years ago
Rapptz
a339e01047
[tasks] Compare using full datetime rather than sole time
Comparisons using just the time object without an attached date
are pretty buggy and incomplete -- comparisons only make sense when
given a particular instant of time.
Ref: #7676
3 years ago
Rapptz
58ad146a4e
Remove window re-assignment in gateway rate limiter
This was a hold over from the old cooldown implementation.
3 years ago