Josh
ffe8f53bd9
Add support for specifying the type of a generic discord.Object
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
6eb665fd98
Use persistent dictionary for ratelimit information
This should prevent ratelimit information from being cleared too early.
In order to prevent the dictionary from growing to large expired keys
are deleted once they've been deleted.
At present I'm unsure if this change would cause too much CPU pressure.
3 years ago
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
z03h
ce14c34468
Set allow_list for fetched AutoModRules
3 years ago
Mikey
5603309197
Document relationship between AutoModRuleAction and its type
3 years ago
Maya
e73c1a3b9e
[commands] Fix typing error with CheckAnyFailure
3 years ago
Alex Nørgaard
d838014277
Allow creation of allow lists in automod word filter rules
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
e45257f6f4
Fix bolded HTTPException not working due to rST limitation
3 years ago
Soheab
521e9eb6ca
Fix small typo in Guild.edit docstring
3 years ago
Vioshim
2a464b8041
Implement Embed.__eq__ and EmbedProxy.__eq__
3 years ago
Stocker
ce3853a38d
Use a TypeVar for flatten_user to workaround Pyright bug
3 years ago
Rapptz
50ac9268bb
Fix crash with automod due to silent Discord breaking change
Fix #8264
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
Rapptz
00590e865f
Use a sequence instead of a list for AllowedMentions
3 years ago
Sebastian Law
b17fb67341
[commands] Unload cog when command registration fails in _inject
3 years ago
Rapptz
088e763306
Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.
This change should be mostly transparent.
3 years ago
Rapptz
918151c5ad
Fix utils.copy_doc being partially unknown
3 years ago
Rapptz
3e6eb0dec3
Add extraneous debug logging to sub ratelimits being detected
3 years ago
Rapptz
e08b9ab68e
Allow configuring the maximum ratelimit timeout before erroring
This is useful for cases where a rate limit is known to be
extraordinarily high, but you still want to handle the error.
This is common with routes such as emoji creation.
3 years ago
Rapptz
37c2cc2747
Special case message deletion sub rate limits
3 years ago
Rapptz
70432f770b
Rewrite rate limit handling to use X-Ratelimit-Bucket and a semaphore
This should increase throughput of the number of requests that can be
made at once, while simultaneously following the new standard practice
of using the rate limit bucket header.
This is an accumulation of a lot of months of work between a few people
and it has been tested extensively. From the testing it seems to work
fine, but I'm not sure if it's the best way to do it.
This changeset does not currently take into consideration sub
rate limits yet, but the foundation is there via Route.metadata. In the
future, this metadata will be filled in with the known sub rate limit
implementation to allow them to have separate keys in the rate limit
mapping.
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
2fe41c825b
Fix some minor typing errors
3 years ago
ow0x
8f7d13d7f0
Update docs for abc.Messageable.pins()
3 years ago
z03h
b4d2395a5e
[commands] change Range to raise BadArgument for invalid values
3 years ago
Lilly Rose Berner
0a2bb5e85f
Add forum post rename system message
3 years ago
GoogleGenius
9f82fa1037
Fix small typos in docstrings
3 years ago
Michael H
07cee76c66
Add advanced startup example
shows setup_hook and async context manager use with examples
approximating real world use cases
3 years ago
James Hilton-Balfe
0cd06789e4
Prioritise async iteration before sync iteration in utils.find/get
3 years ago
z03h
55ae37f65e
Add automod types to audit log
3 years ago
Rapptz
7c71feac23
Change abc.PrivateChannel to be a proper subclass
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
3 years ago
Rapptz
a4f0b9f5ef
Improve documentation on AutoModAction.message_id
3 years ago
Rapptz
5d41d4ca50
Fix ArrayFlags._from_value not having an initial value
3 years ago
CoolSpring8
6f30c0612b
Fix passing proxy to interactions and webhooks
3 years ago
Rapptz
360836ce10
[commands] Add support for Range[str, ...]
3 years ago
Simon Beal
61d2bc78fe
Add support for harmful_link automod triggers
Co-authored-by: Blue <[email protected] >
3 years ago
Omkaar
a7248aa582
Fix tiny errors
3 years ago
Bryan Forbes
547fcb93d1
[commands] Change Command.extras to match typing in app commands
3 years ago
ChrisJL
f364a88c20
Add documetation for auto_moderation_action MessageType enum
3 years ago
Alex Nørgaard
d61ccf7931
Implement AutoMod
3 years ago
Rapptz
aa956914cd
Add Thread.starter_message property
3 years ago
mniip
08c9da6e89
Change View, Modal, and AudioPlayer to use logger instead of stderr
3 years ago
GoogleGenius
6294f58f56
Use the latest GitHub Action versions
3 years ago
will
d813cbecbe
Fix typo and capitalizations in docs
3 years ago
Kellenn
eb611b3272
Fix AttributeError in logging example
3 years ago
Rapptz
5ddf32dd09
Fix potential infinite loop in Reaction.users
3 years ago