2281 Commits

Author SHA1 Message Date
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
Rapptz
0033cc83ef Fix fetching invites on guilds the user is not in 2020-01-25 03:29:14 -05:00
Snaptraks
ba112e6ec8 Remove extra backtick in CustomActivity docs 2020-01-24 22:11:04 -05:00
Harmon
e469174071 Documentation fixes (#2531)
* Fix indentation for versionadded for Team.members
* Replace tabs with spaces in API Reference documentation
2020-01-24 20:53:34 -05:00
Rapptz
a2a02ea945 Version bump to v1.3 v1.3.0 2020-01-24 19:32:25 -05:00
Xua
1fd87ad0ca Add example on subclassing commands.Context 2020-01-24 19:32:24 -05:00
Rapptz
215fed831c Mention that you can create Permissions via kwargs now 2020-01-23 00:04:45 -05:00
Harmon
6f9793fe5e Fixes and improvements for v1.3 documentation
* Add missing versionadded strings for v1.3
* Add missing versionchanged string for Message.edit
* Consistently use versionadded for attributes
* Consistently use versionchanged for parameters
* Use versionchanged for Bot.is_owner
* Fix references in v1.3 changelog
* Improve grammar in v1.3 changelog
2020-01-22 23:55:05 -05:00
Io Mintz
03d9005eec
1.3.0 changelog: fetch_roles fetches roles, not members 2020-01-22 20:34:10 -06:00
Rapptz
2ba28bbfe2 One last superfluous .0 in versionadded 2020-01-22 21:12:02 -05:00
Rapptz
956b155cc5 Fix up some links and mention IDENTIFY change 2020-01-22 20:58:15 -05:00