Commit Graph

339 Commits

Author SHA1 Message Date
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
344cb96c5d Add sticker support 2020-11-23 05:09:20 -05:00
b96ed43082 Fix typo in event reference 2020-10-16 22:44:51 -04:00
Xua
1066f42f1f Add intents to event reference 2020-10-01 04:42:32 -04:00
bf8ca58996 Add a special exception for required privileged intents 2020-09-23 03:21:20 -04:00
23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00
0b93fa3a82 Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
2020-09-23 03:20:35 -04:00
37c5c583f2 Add support for message_reference on Message object 2020-09-23 02:29:03 -04:00
cc26499237 Add competing activity type 2020-09-20 00:05:18 -04:00
450e71f086 Add a more concrete exception for 500 status codes.
Fixes #5797
2020-09-09 21:24:14 -04:00
39aa08ab93 Added __eq__ to Message 2020-09-04 08:42:31 -04:00
9121441315 Add South Korea VoiceRegion 2020-08-18 01:11:33 -04:00
8252b1f884 Document on_error "special" behavior 2020-08-14 09:16:03 -04:00
7ed26db3b3 Add an exposed way to extract shard-specific information.
Closes #2654
2020-07-25 09:59:41 -04:00
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
f5289a30a7 Fix typo in on_socket_raw_send documentation 2020-07-22 23:19:37 -04:00
3408695a37 [docs] fix reference to Guild and document utils.resolve_template 2020-07-08 23:01:00 -04:00
a64006ee9b Add support for integrations 2020-06-28 14:50:43 -04:00
2b3c6e0d47 Add support for Discord templates 2020-06-28 14:48:04 -04:00
b4b953bfc6 Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
ab5f995d78 Add support for public user flags 2020-05-29 22:40:14 -04:00
66c6be50d8 Prepare for the discord.com domain rename 2020-05-23 21:44:30 -04:00
6d0db182b9 Add new alias VerificationLevel.very_high 2020-04-09 17:10:44 +09:00
041785937e Add support for configuring allowed mentions per message or bot wide. 2020-04-04 07:40:51 -04:00
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
e42ad50f99 Add discord.ChannelType.category to documentation 2020-02-16 21:52:20 -05:00
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
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
cecd45d503 Add changelog for v1.3 2020-01-22 20:44:58 -05:00
d0a1956be9 Improve usability of utils.sleep_until
Fix issue where sleeping for an extended period on python 3.5
would cause an exception

Add sleep_until to API docs

Add result argument to sleep_until
2020-01-21 20:28:14 -05:00
733962df12 Drop final 0 in versionadded numbers in api.rst 2020-01-21 19:48:52 -05:00
87f9dcff9c Add support for clearing a specific reaction.
Closes #2440
2020-01-17 19:53:28 -05:00
7b2c01c48a Add support for on_invite_create and on_invite_delete 2020-01-17 19:20:53 -05:00
5f7a97ff96 Document BaseActivity 2020-01-14 22:09:24 -05:00
a841efa087 Add support for custom activities
It's been long enough.

Fixes #2400
2020-01-14 20:37:48 -05:00
787d424dce Add VoiceRegion.dubai 2020-01-06 00:30:04 -05:00
c92ca4ee07 Add Profile.system and Profile.team_user to query newer flags 2019-12-21 07:46:15 -05:00
9c6a121644 Implement discord.MessageFlags
Refactor flags placement and use it for suppression.
2019-12-20 20:56:40 -05:00
f554819506 Implement Webhook.type 2019-11-26 05:16:53 -05:00
7df5effbb7 Add new audit log entry types. Fix issue with unknown entry types 2019-11-26 05:16:53 -05:00
f831767585 docs: on_guild_emojis_update is a Sequence 2019-10-17 20:10:34 -04:00
8488669482 add suppress-embeds to on_message_edit triggers 2019-10-17 05:56:01 -04:00
6241983a99 Add europe region 2019-10-17 05:56:01 -04:00
59df2004e3 change game playing to activity 2019-08-27 04:05:11 -04:00
da4bb0610c Add CHANNEL_FOLLOW_ADD Message Type
Add documentation for MessageType.channel_follow_add

Add versionchanged to new MessageType attr

Add system_content for new MessageType
2019-08-27 04:05:03 -04:00
fedf26bf3e Add FFmpegOpusAudio and other voice improvements
Rework FFmpeg player and add FFmpegOpusAudio

I have extracted some of the base FFmpeg source code into its own
base class and reimplemented the PCM and the new Opus variants.

Support avconv probing

Also fix a few things

Update `__all__`

Fix the bugs

Rework probe functions and add factory function

Probing involves subprocess so it has been reworked into an async
factory function.

Add docs + a few tweaks

* Removed unnecessary read() and is_opus() functions from FFmpegAudio
* Clear self._stdout in cleanup()
* Add 20 second process communication timeout to probe functions
* Capped probe function bitrate values at 512

Change AudioPlayer to use more accurate, monotonic time.perf_counter()

Add lazy opus loading

The library now no longer loads libopus on import, only on
opus.Encoder creation or manually.

Fix review nits
2019-07-22 20:46:40 -04:00
b31028fa19 Fix some linking issues with TeamMembershipState 2019-06-30 02:38:56 -04:00
604e9dfc67 Remove constructibility from certain classes in documentation. 2019-06-30 02:37:59 -04:00
68342db04d [commands] Properly raise the correct exception for owner_ids
Also some minor nits with documentation.
2019-06-29 19:26:45 -04:00
3961e7ef6d Support team members data in application info 2019-06-29 19:14:24 -04:00