Dan Hess
fc951873a1
[tasks] Remove HTTPException as an exception to silently continue for
5 years ago
Josh
a947c7a6ec
Fix gramatical error in Client guild_subscriptions docs
5 years ago
Tyler North
ae1ec8072f
Fix AttributeError when fetching reactions without cache
5 years ago
Rapptz
14fd3dbaa7
Optimize Channel.permissions_for by not creating temporary objects
This seemed to have shaved a few microseconds:
10.8 µs ± 79.6 ns per loop → 8.53 µs ± 48.1 ns per loop
12 µs ± 613 ns per loop → 8.72 µs ± 30.2 ns per loop
With 100K loops each
5 years ago
Rapptz
50f4c31d31
Terminate shard processing queue when a clean close is encountered.
Fix #5180
5 years ago
Riley S
b2065c92df
Fix typo when creating a guild via template
5 years ago
Jaime Garcia Jr
ab1c606ff2
Specify where to get max_members in documentation
5 years ago
Nadir Chowdhury
6d88316767
Fix NameError with resolving codes with Template
5 years ago
Rapptz
b77af19939
Fix AttributeError from internal queue being double underscore.
5 years ago
Rapptz
7ed26db3b3
Add an exposed way to extract shard-specific information.
Closes #2654
5 years ago
Rapptz
a42bebe581
Propagate exceptions when an unhandled error happens
5 years ago
jack1142
bd9821320e
Use a subclass rather than monkey-patching for the websocket
5 years ago
Rapptz
ec3c3eb4c6
Update message references in AutoShardedConnectionState
Fixes #5133
5 years ago
Rapptz
d37b91dfc6
Add guild_ready_timeout to control the timeout of GUILD_CREATE stream
This also fixes a timing issue where READY would take far too long to
load for big bot authors.
Closes #4112
5 years ago
Rapptz
e0660ef8a6
Add a timeout for receiving websocket messages.
5 years ago
Rapptz
137ff34f3a
If we're out of retries just raise the OSError
5 years ago
Rapptz
e2f42597a5
Handle Connection Reset by Peer connection errors.
This should work both on Windows and on Linux.
Apparently these types of blips are considered normal for Discord. So
rather than letting the reconnect logic handler expect these to be
catastrophic, it should handle it specially so it doesn't waste an
IDENTIFY for what ultimately should just be a small networking blip.
This also makes it less noisy for the end-user as these complaints
happen from time to time.
5 years ago
Rapptz
8070d39a23
Add shard related connection and resume events.
These include:
* on_shard_resumed
* on_shard_connect
* on_shard_disconnect
5 years ago
Rapptz
80cc5b5edb
Handle connection errors during reidentify flow.
5 years ago
Rapptz
f658fcf164
Make every shard maintain its own reconnect loop
Previously if a disconnect happened the client would get in a bad state
and certain shards would be double sending due to unhandled exceptions
raising back to Client.connect and causing all shards to be reconnected
again.
This new code overrides Client.connect to have more finer control and
allow each individual shard to maintain its own reconnect loop and then
serially request reconnection to ensure that IDENTIFYs are not
overlapping.
5 years ago
Rapptz
394b514cc9
Add before_identify_hook to have finer control over IDENTIFY syncing
5 years ago
Rapptz
9c7ae6b9dc
Fix READY not firing for multi-processed AutoShardedClient clusters
5 years ago
Rapptz
058a1e608b
Fix voice websocket connections
5 years ago
Rapptz
988505a97f
Use a proper type for the event queue
5 years ago
Rapptz
b8154e365f
Rewrite gateway to use aiohttp instead of websockets
5 years ago
Rapptz
45cb231161
Fix AttributeError on reconnection
5 years ago
Rapptz
3afbbf5e47
Can't use %d in here
5 years ago
Rapptz
ba35c2b9bf
Add shard ID to keep alive logger messages
5 years ago
Rapptz
09ecb16680
Rewrite of AutoShardedClient to prevent overlapping identify
This is experimental and I'm unsure if it actually works
5 years ago
Jaime Garcia Jr
1c3b0c02f8
Add revisions to check_once docs
5 years ago
Jaime Garcia Jr
5813593d6e
Add documentation on bot_check_once
5 years ago
Rapptz
2628949cda
Add a changelog entry for v1.3.4
5 years ago
AXVin
f5289a30a7
Fix typo in on_socket_raw_send documentation
5 years ago
SebbyLaw
b43658f6ff
[commands] Add documentation for exceptions in Context.(re)invoke
5 years ago
SebbyLaw
9b24ff4f77
Add gray alias for discord.Colour
5 years ago
jack1142
901290c8a2
[commands] GroupView.get_command shouldn't raise errors for empty names
5 years ago
Skezza
4a686e11ba
Added exception documentation for Guild.create_voice_channel
5 years ago
Skezza
2552a268cb
Add double backticks for some parameter mentions in the documentation.
5 years ago
jack1142
1ca257bb68
Add Guild.change_voice_state to control our voice state.
5 years ago
Rapptz
4de01212a4
Fix detection of some JPEG images without JFIF or Exif info
Closes #5143
5 years ago
Rapptz
0bc15fa130
Don't use a namedtuple for _Overwrites
Fix #5109
5 years ago
Tarek
a92e3e7b6b
Fix TypeError when not specifying roles.
5 years ago
NCPlayz
3408695a37
[docs] fix reference to `Guild` and document `utils.resolve_template`
5 years ago
James
475762e8df
Document raises for Converter.convert
5 years ago
James
61216112d0
Add a licence and encoding declaration to missing files
5 years ago
Nadir Chowdhury
e971e2f16c
Allow more methods to set an audit log reason
5 years ago
Znunu
de556b01d1
Allow Webhook to be hashable and comparable
5 years ago
Skezza
c3bca7ec73
Documentation formatting
5 years ago
Skezza
e7500f738c
Fix typo with voice_client documentation
5 years ago
NCPlayz
ce03c62c6b
[bugs] stop resolving Object for template/invite; remove dupe methods
5 years ago