Rapptz
e65dab3b23
Implement role tags.
...
This comes with:
* The RoleTags class
* Role.is_premium_subscriber()
* Role.is_bot_managed()
* Role.is_integration()
* Guild.self_role
* Guild.premium_subscriber_role
2020-11-26 01:57:24 -05:00
SebbyLaw
4adbe03d7c
[commands] Allow setting description of cogs
2020-11-26 01:57:24 -05:00
Rapptz
5bad633987
Fix preview_asset key name in Sticker
2020-11-23 06:23:06 -05:00
Rapptz
0456458ad1
[commands] Fetch user if an ID is passed and cache lookup fails.
2020-11-23 06:22:44 -05:00
Rapptz
c8954906cb
Sticker implementation cleanup
2020-11-23 06:05:25 -05:00
Rapptz
f174365d33
Ensure member key is not overwritten by author key in MESSAGE_UPDATE
...
This also coerces the older message to take the member data from the
newer message so the types are not incompatible.
Fix #5999
2020-11-23 06:02:27 -05:00
Rapptz
7a3a571e0a
Don't store a user cache if there's no member intent or cache is off
...
Without a cache or member intent the user cache can get out of date
with no events to update the underlying user in the member object.
Ref: #6034
2020-11-23 05:24:13 -05:00
Zomatree
344cb96c5d
Add sticker support
2020-11-23 05:09:20 -05:00
Rapptz
f9b5cead31
Suppress the creation of a command window from ffmpeg on Windows
...
Fix #6038
2020-11-21 23:12:15 -05:00
Rapptz
52865dfa99
Clear the connected flag when potentially reconnecting the player
...
Fix #5953
2020-11-21 22:53:04 -05:00
Rapptz
b76b5b42c0
Fix attribute error during rapid disconnects in VoiceClient.
...
Fix #6039
2020-11-21 22:47:04 -05:00
Rapptz
431ee8794b
Fix error with templates not having access to member cache flags.
...
This also changes the attribute from having an underscore
Fix #5986
2020-11-21 22:42:59 -05:00
Rapptz
bdcc645cbf
Bump version for development purposes
2020-11-21 22:19:23 -05:00
Rapptz
6caa983b5e
Clarify Colour.random RNG
2020-11-21 22:18:39 -05:00
Caio Alexandre
896a5bef1d
Add Colour.random factory method
2020-11-21 22:16:41 -05:00
webtax-gh
25f23ec113
Properly document that categories throw 404's on create_invite.
2020-11-21 22:16:41 -05:00
Harmon
351a1a1865
Raise DiscordServerError for 503 Service Unavailable errors
2020-11-21 22:16:40 -05:00
Jonathan Feenstra
c54d6f03c5
[commands] Update MessageConverter link regex
...
Remove redundant parts of the MessageConverter regexes and support www
2020-11-21 21:30:54 -05:00
Lukas
873ed87caa
Raise ClientException when members intent is not enabled on guild.fetch_members
2020-11-21 21:30:45 -05:00
SebbyLaw
2e2560126f
Implement icon_rl_as and cover_image_url_as for AppInfo
2020-11-21 21:11:47 -05:00
Rapptz
763d46cd7a
Version bump to v1.5.1
2020-10-19 19:44:10 -04:00
Rapptz
707cb47438
Fix error when querying members from the gateway.
...
I accidentally made this return True instead of the actual member list
2020-10-19 19:37:16 -04:00
Rapptz
1a6295dffb
Allow concurrent calls to guild.chunk()
...
This allows people who write guild.chunk() calls in highly concurrent
places such as on_message or checks to not spam the gateway with an
actual request and instead waits for the pre-existing request to finish
2020-10-19 02:47:03 -04:00
Florian Spieß
ae65d75f96
Load member from guild_member_update dispatch
2020-10-17 23:19:02 -04:00
Rapptz
3daaadafdd
[commands] Lazily fetch members in discord.Member converters
...
This makes commands taking members mostly work transparently without
much effort from the user.
2020-10-17 23:05:22 -04:00
Rapptz
61e25cb090
Ensure our own member is never evicted from the cache in any policy.
2020-10-17 23:02:03 -04:00
Rapptz
2509ca6a82
Add internal method to check if the websocket is currently ratelimited
2020-10-17 22:51:29 -04:00
Rapptz
b07d474bd6
Fix attribute errors when timing out during chunking start-up
2020-10-17 22:02:44 -04:00
Rapptz
21ed9f61d2
Fix disconnect when trying to move to another voice channel.
...
Not overly proud of this implementation but this allows the library
to differentiate between a 4014 that means "move to another channel" or
"move nowhere". Sometimes the VOICE_STATE_UPDATE comes before the
actual websocket disconnect so special care had to be taken in that
case.
Fix #5904
2020-10-17 22:01:57 -04:00
Rapptz
b91ddc6f4e
Mark intent alias flags as actual aliases to skip them in __iter__
...
Fix #5945
2020-10-17 18:50:56 -04:00
Rapptz
1c03a4aac9
Evict keys when they're set to None in PermissionOverwrite
...
Fixes #5929
2020-10-17 01:59:00 -04:00
Rapptz
b9e1bdf87e
Properly insert at the end if position is not found when moving.
...
Fixes #5923
2020-10-17 01:52:35 -04:00
Rapptz
d9acc2f491
Escape multi-line quotes properly
...
Fix #5897
2020-10-17 01:36:31 -04:00
Josh
62040de6a7
Fix Colour.dark_theme docstring.
2020-10-16 22:51:50 -04:00
PythonCoderAS
a40e20fa38
Use Hashable mixin for Message
2020-10-16 22:46:08 -04:00
ChristopherJHart
f308f34db1
Add note pointing to discord.AllowedMentions
2020-10-04 22:52:00 -04:00
Rapptz
6d1bcf89da
Version bump to v1.5.0
2020-09-28 20:57:10 -04:00
Rapptz
bf42cf7232
Add warning if guilds intent is disabled.
2020-09-28 05:39:13 -04:00
Rapptz
1ebb52b139
Guard GUILD_MEMBER_ADD/GUILD_MEMBER_REMOVE from errors
...
If the guilds intent is disabled all guilds are unavailable. This means
we don't receive a member_count attribute and cannot update it.
2020-09-28 05:12:05 -04:00
Rapptz
28e5b2a5e1
Add Client.intents to query the current intents
...
Closes #5854
2020-09-26 06:35:41 -04:00
Nekokatt
3084deee18
Fixed incorrectly named 'Intent' class in doc.
...
`Intent.members` -> `Intents.members`.
2020-09-26 06:34:01 -04:00
Rapptz
e4d7f44aa5
Make Intent class creation more intuitive
2020-09-24 09:00:54 -04:00
apple502j
dc6e9e7fd6
Fix typo in ValueError message
2020-09-24 09:00:47 -04:00
Rapptz
59d514fcdf
More intent related documentation
2020-09-24 01:39:45 -04:00
Rapptz
005a80303f
Add chunk_guilds_at_startup and deprecate fetch_offline_members
2020-09-24 01:17:04 -04:00
Sebastian Law
2974663367
Fix typos in Intents documentation
2020-09-24 00:17:37 -04:00
apple502j
0ebf5b2fa7
Add support for flag alias
2020-09-24 00:16:37 -04:00
Rapptz
7126f5a78c
Use delete_message_days instead of delete-message-days
2020-09-23 08:03:06 -04:00
Rapptz
e8eb19b2b4
Use /invites/ instead of /invite/
2020-09-23 07:58:57 -04:00
Rapptz
2e06239d3c
Add documentation for gateway intents
2020-09-23 03:21:22 -04:00