2291 Commits

Author SHA1 Message Date
Rapptz
9a52786aa9 Bump version for development 2020-04-06 05:00:33 -04:00
Rapptz
7433cf3b16 Fix VoiceClient.average_latency erroring when heartbeat is None 2020-04-06 04:58:27 -04:00
NCPlayz
c8f32f3151 animated key is never given to reaction_remove(_emoji) 2020-04-06 04:58:27 -04:00
Jake Ward
c782ac3254 Update documentation on guild features to reflect Discord changes 2020-04-06 04:58:27 -04:00
MarkKoz
2653ae7599 [commands] Stop yielding duplicate commands from walk_commands 2020-04-06 04:52:53 -04:00
Rapptz
8ff285fcbc Documentation fixups for allowed mentions 2020-04-04 13:32:47 -04:00
Rapptz
d853a57e86 Rename allowed mention parameters to allowed_mentions 2020-04-04 13:22:51 -04:00
Rapptz
730d79d60a Allow introspection and setting of global allowed mention configuration 2020-04-04 12:49:39 -04:00
Rapptz
481b335f2d Fix various implementation bugs with allowed mentions 2020-04-04 12:45:17 -04:00
Rapptz
041785937e Add support for configuring allowed mentions per message or bot wide. 2020-04-04 07:40:51 -04:00
Rapptz
6c764465c0 Fix regression with Member.activities not clearing 2020-04-04 03:17:31 -04:00
Ilya Lukyanov
d2cc8aa459 Add position argument to Guild.create_category
This way we can specify category position upon creation
2020-04-04 03:15:47 -04:00
Josh B
20854de080 Allow for optional custom error handler in tasks extension 2020-04-04 03:11:25 -04:00
Epic
18c52671a9 Remove extra to in tasks docs 2020-04-04 03:09:21 -04:00
Maku
c2d5c2e118 Add use_cached to Attachment.to_file 2020-04-04 03:03:20 -04:00
James
6a30f2749f [tasks] Add is_running property to Loop 2020-04-04 03:02:10 -04:00
Fwf
fa34d357a1 Added VoiceClient.latency and VoiceClient.average_latency
This also implements the heartbeating a bit more consistent to the
official Discord client.
2020-04-04 03:00:27 -04:00
NCPlayz
1b0e806245 [commands] Implement commands.before/after_invoke 2020-04-04 02:57:20 -04:00
Saurabh Chaturvedi
3faa9799e3 Fix documentation problem with color
At readthedocs.io, for role `color`, it says "Returns the role colour. An alias exists under `color`". This PR fixes that to say "Returns the role color. An alias exists under `colour`".
2020-04-04 02:42:22 -04:00
Rapptz
baffe564e5 Version bump to v1.3.3 v1.3.3 2020-04-04 01:50:13 -04:00
Rapptz
465438fb3c Add changelog for v1.3.3 2020-04-04 01:47:01 -04:00
Rapptz
403651a144 Change default close code to 4000 instead of 1000.
This prevents our sessions from being invalidated by Discord which
caused a lot of failures when resuming. This caused an unnecessary
amount of IDENTIFYs to happen depending on the circumstances.

Closes #2631

See also discord/discord-api-docs#1472
2020-04-04 01:42:08 -04:00
DevilXD
aea9c2aebf Fixed missing awaits in subclassed coros 2020-04-04 01:27:26 -04:00
jack1142
7b3335a0b0 Don't add None to Member.activities tuple 2020-04-04 01:12:46 -04:00
PredaaA
9941812241 Add "FEATURABLE" in guild features. 2020-04-04 01:12:23 -04:00
s0lst1ce
2d48a6d5a1 [commands] Fix a typo in the docstring of the internal _Semaphore class 2020-04-04 01:12:08 -04:00
Glazed_Belmont
6525ac948c fixing the BaseActivity links 2020-04-04 01:12:08 -04:00
Peter Levart
6c55bdfe39 Change package manager yum to dnf 2020-03-01 18:18:44 +01:00
Peter Levart
5064f51a4c Capitalize Python for consistency 2020-03-01 18:12:21 +01:00
Rapptz
5e63357508 Bump version to v1.3.2 v1.3.2 2020-02-22 19:35:42 -05:00
Rapptz
07720fabd4 Add changelog for v1.3.2 2020-02-22 19:33:27 -05:00
Rapptz
00f6562728 Suppress missing Content-Type headers when fetching content
Fixes #2572
2020-02-22 19:07:17 -05:00
Sebastiaan Zeeff
59ed908ee2 Fix invalid format specifier in PartialWebhookState.__getattr__
The message for the AttributeError raised by the __getattr__ method of
the PartialWebhookState class is formatted using `str.format`. However,
the placeholder contained a stray ":" before the !r specifier. This
caused a ValueError("Invalid format specifier") to be raised whenever
this method was called in lieu of the AttributeError that is intended
to be raised.
2020-02-22 19:05:26 -05:00
the-white-light
c11dfbca6d on_invite_create requires Manage Channels
Event on_invite_create (and presumably _delete) require Manage Channels permission.
2020-02-22 19:04:39 -05:00
Rapptz
4cf5f792d4 Fix Webhook.send returning an empty string when wait=False 2020-02-16 21:52:20 -05:00
Rapptz
af6a5efa53 Fix crashes when Message.guild is Object 2020-02-16 21:52:20 -05:00
Deniz
e42ad50f99 Add discord.ChannelType.category to documentation 2020-02-16 21:52:20 -05:00
Rapptz
bb1c1e9fa3 [commands] Raise when passing invalid permission keys in their checks 2020-02-02 19:11:50 -05:00
Rapptz
cbca33e44f Guard against the member data not being available in VOICE_STATE_UPDATE 2020-02-01 23:48:09 -05:00
Rapptz
25a04ed135 Better detection for Cloudflare related 429s.
At some point Cloudflare started returning some JSON. I don't know how
this JSON looks like.

See #2544
2020-02-01 23:46:28 -05:00
Rapptz
3b8678da81 Use member data from VOICE_STATE_UPDATE if not found in cache 2020-02-01 23:40:25 -05:00
Rapptz
5c7df3d943 Bump waiting time of GUILD_CREATE stream by number of shards waited.
2 seconds might be too short and cause it to finish waiting while other
shards are still IDENTIFYing.
2020-01-28 23:56:46 -05:00
Rapptz
8767c478ed Version bump to v1.3.1 v1.3.1 2020-01-26 17:40:34 -05:00
Rapptz
090110eaf6 Add changelog for v1.3.1 2020-01-26 17:40:08 -05:00
Rapptz
b9e6ed28a4 Downgrade unknown event logging to DEBUG rather than WARNING
It's too noisy
2020-01-26 09:22:42 -05:00
Merlintor
1451f790a0 Explicitly check for guild object 2020-01-26 14:43:10 +01:00
Rapptz
d5589dcc27 Document the new opus loading behaviour 2020-01-25 22:21:14 -05:00
Karthikeyan Singaravelan
25b8adc404 Import ABC from collections.abc instead of collections
This is for Python 3.9 compatibility.
2020-01-25 21:46:33 -05:00
Karthikeyan Singaravelan
1b4cac92fc Fix warnings regarding invalid escape sequences. 2020-01-25 21:46:33 -05:00
Myst(MysterialPy)
c2a05688d7 Add Python 3.8 classifier to setup.py
Added `Programming Language :: Python :: 3.8` classifier to setup.py
since Discord.py fully supports it without error or warning.
2020-01-25 21:34:15 -05:00