1883 Commits

Author SHA1 Message Date
Josh B
7df5effbb7 Add new audit log entry types. Fix issue with unknown entry types 2019-11-26 05:16:53 -05:00
Rapptz
4ef0fb0d95 Fix more deprecation warnings 2019-11-20 03:04:04 -05:00
Rapptz
1b040fd4ba Fix one more remaining loop passing for 3.8 in a Lock 2019-11-20 02:37:00 -05:00
Rapptz
a6f61dcbde Fix all deprecation warnings for 3.8 2019-11-20 02:30:19 -05:00
Rapptz
924398c1ac Trailing whitespace in documentation. 2019-11-20 01:43:01 -05:00
Rapptz
45f342ff79 Fix regression with references being overwritten from the cache.
A proper fix for this would be to just request presence information
as well since the chunk request would probably be more up to date than
the current cache. However this delta requires a little bit more work
and will be done later.
2019-11-20 01:41:23 -05:00
Rapptz
15f0b000e1 Move PartialEmoji over to a new namespace to avoid circular imports 2019-11-20 00:50:19 -05:00
Rapptz
e1a237a0d3 Revert "[tasks] Add Loop.exception for more reliable exception retrieval."
This reverts commit 7a8c9e66d9c43a539fb78107ce3f51f16c7f30a2.
2019-11-19 21:59:39 -05:00
Rapptz
071c5b89e0 Revert "[tasks] Add support for explicit time parameter when running."
This reverts commit 9f822a1e6d904c4d7454ab77496b8a4f736073ab.
2019-11-19 21:59:27 -05:00
rkevin
51b3143319 Fix OggStream "invalid header magic" at end of stream 2019-11-19 21:06:28 -05:00
Rapptz
a238c6178a Update regex to fetch URLs to match the official client.
Fixes #2420.
2019-11-18 22:22:54 -05:00
Rapptz
cb21159589 Document that PartialEmoji.name can be None 2019-11-18 20:00:06 -05:00
Rapptz
d8e47b08a2 Manually trigger GC in cases of large deallocations. 2019-11-18 19:24:33 -05:00
Rapptz
89bfd9cc20 animation field in reaction objects are not consistently available 2019-11-15 04:37:39 -05:00
Riley Shaw
7cde9febcf [commands] Add Command/Group.add/remove_check 2019-11-15 04:29:52 -05:00
Devon R
bf9b9c5879 Adjust BASE urls to have no trailing slash (consistency) 2019-11-15 04:25:38 -05:00
Devon R
f5ebf42e1f Return invites as https, various URL normalization 2019-11-15 04:25:38 -05:00
Josh B
46246a2844 Add view_guild_insights permission 2019-11-15 04:23:26 -05:00
Willy
e713b86154 Added Optional to ClientUser.premium_type type hint 2019-11-15 04:23:15 -05:00
Willy
99b61f973f Added Optional to VoiceState.channel type 2019-11-15 04:23:15 -05:00
Naegin
cc2aecd3ff Fix 'purge' method docstring. 2019-11-15 04:23:15 -05:00
NCPlayz
dab2519a09 Implement TextChannel.follow() 2019-11-15 04:23:15 -05:00
Xua
4c3e53edf4 Fix webhooks not re-raising after retries run out 2019-10-20 05:20:15 -04:00
apple502j
30c9e33384 [docs] category_id is Optional 2019-10-20 05:20:15 -04:00
romangraef
bc642ded6e [commands] Allow converters from custom discord.ext extensions
Originally the converting of an argument with type in the discord.*
package would try to use the predefined converters, even if there were
none present. This is fixed by supplying a default argument to getattr

Fixes #2369
2019-10-20 05:19:03 -04:00
NCPlayz
f273199d57 Refactor name kwarg for Emoji.edit() 2019-10-20 05:19:03 -04:00
Xua
f912758a1f Prevent premium_subscription_count being None 2019-10-17 05:56:01 -04:00
Io Mintz
2a0766795f Make Guild.default_role use get_role.
Prevents some stale caching by using the new O(1) Guild.get_role.
2019-10-17 05:56:01 -04:00
Capn
b63f4f7032 Add MEMBER_LIST_DISABLED to docs for Guild.features 2019-10-17 05:56:01 -04:00
Josh B
07840db053 Document Command.cog property 2019-10-17 05:56:01 -04:00
apple502j
6241983a99 Add europe region 2019-10-17 05:56:01 -04:00
Evan
e67c260f3e
The LURKABLE feature has been renamed to PUBLIC 2019-09-21 18:43:52 +02:00
DevilXD
c6539bbc61 Reaction's emoji can be a partial one too 2019-09-19 21:24:47 -04:00
Io Mintz
3cef1e09f8 Add Emoji.is_usable() 2019-09-19 21:24:16 -04:00
Joshua B
8240454555 Add self_stream property to VoiceState object. 2019-09-19 21:21:54 -04:00
Joshua B
017d428db5 Fix discord.Object type hinting docs
discord.Object requires ID as an int not str
2019-09-19 21:15:41 -04:00
Dimbreath
b4358d0dcf [docs] You can upload gifs using guild.edit()
Only if it has ANIMATED_ICON feature.
2019-09-10 21:10:59 -04:00
Ben Mintz
1dddb66a1e [commands] default Bot.owner_ids to a set
This appears to be a typo, as everywhere else, owner_ids is set to a set.
2019-09-10 21:10:59 -04:00
mathsman5133
7f65d9a8b1 [tasks] Add support for passing an argument list of exceptions. 2019-09-10 21:10:59 -04:00
Steve C
5022aa5a0b Fix broken versionadded in Message.is_system() 2019-09-10 21:10:58 -04:00
Imayhaveborkedit
bc147ea37b
Fix FFmpegAudio._process not existing if _spawn_process raises 2019-08-27 19:53:44 -04:00
Rapptz
ea3d119ca6 Use X-Ratelimit-Reset-After header by default.
There is now an option to turn it off, of course.
2019-08-27 18:41:32 -04:00
Rapptz
1c6c26ee38 Fix bucket key to not have the method in there. 2019-08-27 18:41:32 -04:00
Rapptz
078d1d71d8 Use new rate limit millisecond precision option. 2019-08-27 18:41:31 -04:00
Rapptz
5d7cf56d7f Actually add things to the message cache. 2019-08-27 18:36:40 -04:00
Rapptz
5c0b127c96 Create Permissions and Colour objects when necessary in Role
This should have some memory savings of ~24 bytes per role.

* 8 bytes for Permissions
* 8 bytes for Colour
* 8 bytes for the alias

I'm not sure how significant it is but it should be a decent amount.
2019-08-27 18:34:40 -04:00
Lorenzo
828e8189d3 Fix _get_message returning the message cache. 2019-08-27 17:44:22 -04:00
apple502j
7d7eabb974 Make permissions_synced actually return False
The code before this returned None when there is no category.
2019-08-27 17:43:33 -04:00
Rapptz
2f7e875a76 Strip tokens before use.
Closes #2135
2019-08-27 04:59:17 -04:00
Rapptz
cf79816c5d Allow disabling the message cache with max_messages=None
This also changes the default to 1000 instead of 5000 since it can
take some time for small bots to cycle through the default and they
make up the majority of it.
2019-08-27 04:50:50 -04:00