483 Commits
Author SHA1 Message Date
Rapptz 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
Sebastian Law 37c5c583f2 Add support for message_reference on Message object 2020-09-23 02:29:03 -04:00
iDutchy cc26499237 Add competing activity type 2020-09-20 00:05:18 -04:00
Rapptz 450e71f086 Add a more concrete exception for 500 status codes.
Fixes #5797
2020-09-09 21:24:14 -04:00
Andres Torres 39aa08ab93 Added __eq__ to Message 2020-09-04 08:42:31 -04:00
Patrick 9121441315 Add South Korea VoiceRegion 2020-08-18 01:11:33 -04:00
Vexs 8252b1f884 Document on_error "special" behavior 2020-08-14 09:16:03 -04:00
Rapptz 7ed26db3b3 Add an exposed way to extract shard-specific information.
Closes #2654
2020-07-25 09:59:41 -04:00
Rapptz 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
AXVin f5289a30a7 Fix typo in on_socket_raw_send documentation 2020-07-22 23:19:37 -04:00
NCPlayz 3408695a37 [docs] fix reference to Guild and document utils.resolve_template 2020-07-08 23:01:00 -04:00
Nadir Chowdhury a64006ee9b Add support for integrations 2020-06-28 14:50:43 -04:00
Nadir Chowdhury 2b3c6e0d47 Add support for Discord templates 2020-06-28 14:48:04 -04:00
Sebastian Law b4b953bfc6 Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
JohnyTheCarrot ab5f995d78 Add support for public user flags 2020-05-29 22:40:14 -04:00
Rapptz 66c6be50d8 Prepare for the discord.com domain rename 2020-05-23 21:44:30 -04:00
apple502j 6d0db182b9 Add new alias VerificationLevel.very_high 2020-04-09 17:10:44 +09:00
Rapptz 041785937e Add support for configuring allowed mentions per message or bot wide. 2020-04-04 07:40:51 -04: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
Deniz e42ad50f99 Add discord.ChannelType.category to documentation 2020-02-16 21:52:20 -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
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
Rapptz cecd45d503 Add changelog for v1.3 2020-01-22 20:44:58 -05:00
Josh B 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
Rapptz 733962df12 Drop final 0 in versionadded numbers in api.rst 2020-01-21 19:48:52 -05:00
Rapptz 87f9dcff9c Add support for clearing a specific reaction.
Closes #2440
2020-01-17 19:53:28 -05:00
Rapptz 7b2c01c48a Add support for on_invite_create and on_invite_delete 2020-01-17 19:20:53 -05:00
Rapptz 5f7a97ff96 Document BaseActivity 2020-01-14 22:09:24 -05:00
Rapptz a841efa087 Add support for custom activities
It's been long enough.

Fixes #2400
2020-01-14 20:37:48 -05:00
NCPlayz 787d424dce Add VoiceRegion.dubai 2020-01-06 00:30:04 -05:00
Rapptz c92ca4ee07 Add Profile.system and Profile.team_user to query newer flags 2019-12-21 07:46:15 -05:00
NCPlayz 9c6a121644 Implement discord.MessageFlags
Refactor flags placement and use it for suppression.
2019-12-20 20:56:40 -05:00
NCPlayz f554819506 Implement Webhook.type 2019-11-26 05:16:53 -05:00
Josh B 7df5effbb7 Add new audit log entry types. Fix issue with unknown entry types 2019-11-26 05:16:53 -05:00
jack1142 f831767585 docs: on_guild_emojis_update is a Sequence 2019-10-17 20:10:34 -04:00
Riley Shaw 8488669482 add suppress-embeds to on_message_edit triggers 2019-10-17 05:56:01 -04:00
apple502j 6241983a99 Add europe region 2019-10-17 05:56:01 -04:00
Riley Shaw 59df2004e3 change game playing to activity 2019-08-27 04:05:11 -04:00
Dice 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
Imayhaveborkedit 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
Rapptz b31028fa19 Fix some linking issues with TeamMembershipState 2019-06-30 02:38:56 -04:00
Rapptz 604e9dfc67 Remove constructibility from certain classes in documentation. 2019-06-30 02:37:59 -04:00
Rapptz 68342db04d [commands] Properly raise the correct exception for owner_ids
Also some minor nits with documentation.
2019-06-29 19:26:45 -04:00
fourjr 3961e7ef6d Support team members data in application info 2019-06-29 19:14:24 -04:00
Rapptz 7543328fe7 Update Sphinx to 2.1.2 2019-06-28 01:43:04 -04:00
Toby Harradine e3e2e38511 Update docs to note Enum derivation change 2019-06-10 00:53:10 +10:00
Rapptz 8bf0482af5 Fix exception hierarchy documentation. 2019-06-08 21:23:42 -04:00
NCPlayz 3c9bcc2851 Improve documentation 2019-06-07 19:27:46 -04:00
Rapptz 320dbc0618 Add support for system channel flags 2019-06-06 22:30:02 -04:00
Rapptz 5dce3410e6 Add support for new message types related to premium guilds. 2019-06-04 18:30:47 -04:00