Rapptz
44ea19c2a5
Fix time_snowflake not being documented
3 years ago
Rapptz
486ccd04df
Change snowflake_time and time_snowflake parameters to pos/kw-only
3 years ago
Soheab
6c59f7de09
[commands] Add description kwarg to parameters and show in default help
3 years ago
Rapptz
77211b04dc
Ensure FFmpeg players have a _process attribute set even during errors
3 years ago
Rapptz
7a199fe567
Change a lot of logging INFO calls to be less verbose
Some of the logs were only useful for debug scenarios, so they have
been downgraded to DEBUG. Others were in INFO but supposed to be in
WARNING so those were upgraded.
3 years ago
James Hilton-Balfe
7a216b2e7d
Fix overload order on as_chunks
3 years ago
Puncher
94f93a8b68
Raise TypeError when token is not a string
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
0274b6ad5f
Remove stack info from ratelimit logs
3 years ago
Rapptz
cd187648e1
Add __bool__ for flags
3 years ago
Rapptz
674845479d
Add support for resume_gateway_url
3 years ago
z03h
ede86ba68d
Fix Sticker Objects type being StageInstance
3 years ago
z03h
39a3fc341f
Add Object.type to Objects where a type can be determined
3 years ago
James Hilton-Balfe
cbf2386737
Fix overlapping or incorrect slots found by slotscheck
3 years ago
Rapptz
fec36318f7
Change abc.GuildChannel.overwrites to have Object keys if cache failed
Ultimately despite it not being the prettiest, Object keys ended up
being the sanest solution to this without destroying ergonomics.
3 years ago
Rapptz
ad940c7100
Document Text in Voice in the migrating documentation
Closes #8179 #8064
3 years ago
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