2449 Commits

Author SHA1 Message Date
alkatar21
dce653a0eb
Don't call close() if we've already been closed in Client.run 2020-09-01 15:24:47 -04:00
parafoxia
ad04fbeee4
[commands] Added ColorConverter alias 2020-08-31 02:29:38 -04:00
Josh
6baacb2c23
[tasks] Don't update _next_iteration on retry 2020-08-28 23:12:07 -04:00
Rapptz
4203e7a5a8 [commands] Use edited timestamp if provided for cooldown timing 2020-08-25 23:15:26 -04:00
parafoxia
1f4f010e51
Fix issue with empty overwrites
Fixes #5756.
2020-08-25 22:45:32 -04:00
Rapptz
38ebef8c16 Version bump for development purposes 2020-08-22 17:19:47 -04:00
Rapptz
11f29890dc Fix bug with Guild.by_category not showing some channels
If categories come after a child channel in the dictionary mapping for
whatever reason, then the previous code would remove it from the
mapping and set it to []. This commit aims to fix this.
2020-08-22 17:18:48 -04:00
Rapptz
45752ab354 Document merging behaviour of AllowedMentions in Messageable.send 2020-08-22 17:14:02 -04:00
Nanofaux
dd408f6871
Fix hyperlink reference to PartialInviteChannel in Client 2020-08-22 16:26:24 -04:00
sinus-x
315edd0b60
Fix letter to be consistent with the rest of the docs 2020-08-22 16:25:44 -04:00
Zomatree
fbd57a63ab
update the docs on RawReactionActionEvent.member 2020-08-22 16:25:25 -04:00
Patrick
9121441315
Add South Korea VoiceRegion 2020-08-18 01:11:33 -04:00
Vexs
8252b1f884
Document on_error "special" behavior 2020-08-14 09:16:03 -04:00
Rapptz
00d39704da Version bump to 1.4.1 v1.4.1 2020-08-09 01:12:45 -04:00
Rapptz
6388bc7b29 Add changelog for 1.4.1 2020-08-09 01:12:32 -04:00
Bryan Forbes
d7aa18beed
Extend __path__ with pkgutil to allow editable extensions 2020-08-07 01:11:20 -04:00
Dan Hess
e04bd1b3a1
Fix error when trying to clear empty image/thumbnail in embeds 2020-08-07 01:07:54 -04:00
Rapptz
5dd8e372e4 Terminate connection if a close code couldn't be handled 2020-08-06 09:25:01 -04:00
Rapptz
9048914756 Version bump to 1.4 v1.4.0 2020-08-05 22:05:21 -04:00
Rapptz
8d16a61e02 Add changelog for 1.4 2020-08-05 22:04:20 -04:00
Nadir Chowdhury
360fc123c6
Add remaining user flags 2020-08-05 22:04:09 -04:00
ELginas
891531fac0
Fixed a typo in message unpinning docs 2020-08-05 21:44:11 -04:00
ELginas
298c28a293
Fix a typo with webhook documentation 2020-08-05 21:43:39 -04:00
apple502j
fb5359f028
Add missing comma in template.py 2020-08-05 21:40:16 -04:00
Riley S
ad22fb295e
[commands] implement HelpCommand.add/remove_check 2020-08-05 21:38:58 -04:00
Dan Hess
3a9fd00a1a
[commands] Provide a way to retrieve time left for a cooldown 2020-08-05 21:37:08 -04:00
Rapptz
09f432016c [commands] Restart subcommand_passed chain on invoke
Fix #5198
2020-08-05 08:36:45 -04:00
Rapptz
250f29989b Be defensive in case Discord breaks something with WS URLs again 2020-08-05 08:35:43 -04:00
Xua
a1d6ff82dd
Fix NameError and AttributeError in Template and Integrations 2020-08-05 05:48:42 -04:00
Rapptz
78851bf1d8 Require people to use templates when making an issue 2020-08-05 04:40:31 -04:00
Rapptz
3a1a215f8b Propagate manual close codes to socket subclass
aiohttp seems to not set it during its state machine flow
2020-08-05 04:27:11 -04:00
Rapptz
a9824ffabf Fix endpoint strings with :443 instead of :80
Fix #5191
Close #5188
2020-08-05 04:21:27 -04:00
Dan Hess
fc951873a1
[tasks] Remove HTTPException as an exception to silently continue for 2020-08-05 03:09:04 -04:00
Josh
a947c7a6ec
Fix gramatical error in Client guild_subscriptions docs 2020-08-04 21:47:33 -04:00
Tyler North
ae1ec8072f
Fix AttributeError when fetching reactions without cache 2020-08-01 22:00:37 -04:00
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
2020-08-01 19:48:15 -04:00
Rapptz
50f4c31d31 Terminate shard processing queue when a clean close is encountered.
Fix #5180
2020-08-01 19:26:49 -04:00
Riley S
b2065c92df
Fix typo when creating a guild via template 2020-07-31 21:09:04 -04:00
Jaime Garcia Jr
ab1c606ff2
Specify where to get max_members in documentation 2020-07-31 21:08:15 -04:00
Nadir Chowdhury
6d88316767
Fix NameError with resolving codes with Template 2020-07-31 21:07:20 -04:00
Rapptz
b77af19939 Fix AttributeError from internal queue being double underscore. 2020-07-25 10:32:32 -04:00
Rapptz
7ed26db3b3 Add an exposed way to extract shard-specific information.
Closes #2654
2020-07-25 09:59:41 -04:00
Rapptz
a42bebe581 Propagate exceptions when an unhandled error happens 2020-07-25 09:59:40 -04:00
jack1142
bd9821320e Use a subclass rather than monkey-patching for the websocket 2020-07-25 09:59:40 -04:00
Rapptz
ec3c3eb4c6 Update message references in AutoShardedConnectionState
Fixes #5133
2020-07-25 09:59:40 -04:00
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
2020-07-25 09:59:40 -04:00
Rapptz
e0660ef8a6 Add a timeout for receiving websocket messages. 2020-07-25 09:59:40 -04:00
Rapptz
137ff34f3a If we're out of retries just raise the OSError 2020-07-25 09:59:40 -04:00
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.
2020-07-25 09:59:40 -04:00
Rapptz
8070d39a23 Add shard related connection and resume events.
These include:
* on_shard_resumed
* on_shard_connect
* on_shard_disconnect
2020-07-25 09:59:39 -04:00