z03h
304229071f
Add VoiceChannel.video_quality_mode
2021-04-17 08:10:41 -04:00
Rapptz
a6f7213c89
Rewrite webhooks to play better with typings and rate limits
...
This unfortunately required splitting the types into two. This led to
a lot of unfortunate code duplication that I didn't really enjoy
writing.
The new design allows users to pass an authentication token to make
webhook requests without the webhook token and allows to finally
edit the webhook channel.
The new design also uses a contextvar to store rate limiting
information so multiple instances or recreating instances no longer
clears the ratelimiting state since it's now essentially a "global"
object.
Closes #6525 , closes #6662 , closes #2509 , closes #1761
2021-04-15 08:04:32 -04:00
Nadir Chowdhury
f1fac96e33
Remove private_channel_(delete/create)
events
2021-04-11 15:13:23 -04:00
NCPlayz
4c565e5299
add reply and application_command types
2021-04-11 00:39:13 -04:00
jack1142
4591705b55
Add missing attribute tables
2021-04-10 03:42:42 -04:00
Rapptz
a9d5c0aa3b
Fix headers in partial webhook channel and guild objects
2021-04-07 06:37:09 -04:00
Zomatree
ad68a1d04e
Add source_channel and source_guild to Webhook
2021-04-06 23:31:18 -04:00
Rapptz
8cece19b22
Add on_interaction event and Interaction class.
...
This is the first pass at the functionality. It's currently a bit
incomplete.
2021-04-06 01:11:36 -04:00
Rapptz
a3a6f88936
Add discord.utils.utcnow() helper function to ease migration
2021-04-04 23:59:04 -04:00
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
...
Naive datetimes will now be interpreted as local time throughout
the library.
2021-04-04 23:54:08 -04:00
Rapptz
fd58371f53
Remove some lingering userbot classes in the documentation
2021-04-04 20:05:19 -04:00
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta
2021-04-04 18:05:49 -04:00
Rapptz
54288879e2
Remove userbot functionality
...
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
2021-04-04 10:15:30 -04:00
Rapptz
6d63cf0d5d
Add missing StoreChannel documentation
2021-04-04 00:17:59 -04:00
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
2021-04-03 22:43:41 -04:00
Nadir Chowdhury
6887d3946a
[docs] Fix fetch_members/guilds documentation
2021-03-31 21:27:40 -04:00
apple502j
954dd09e18
Deprecate Client.logout
2021-03-31 07:30:41 -04:00
Edwin
31ee3fafc1
Add remove_markdown helper function
2021-03-28 18:38:34 -04:00
Colin R
a6c5b04142
Clarify docs to state that on_reaction_remove requires Intents.members
2021-03-24 08:25:12 -04:00
Nadir Chowdhury
6f748e5da5
Add remaining v6 message types
2021-02-23 03:57:11 -05:00
Nadir Chowdhury
427e387a2f
Deprecate non-bot methods
2021-02-23 03:36:37 -05:00
Sebastian Law
a0c1d6f6c5
Fix backslashes showing up in the docs
2021-02-21 07:32:11 -05:00
Maya
66b834b332
Document BanEntry
2021-02-21 00:12:30 -05:00
Sebastian Law
b86073fac3
Document behavior of on_disconnect
2021-02-20 20:47:29 -05:00
Michael H
08d45cc2ab
Update docs to be clearer about discord limitations
2021-02-17 07:33:17 -05:00
ChristopherJHart
050bf74f5d
Clarify on_raw_message_edit cached message nature
2021-01-18 04:55:59 -05:00
Dan Hess
22cb4ef18b
Include pending as a possible member_update trigger
2020-12-29 22:37:07 -05:00
Stefano Pigozzi
194344da7d
docs: Change page to section in event reference
2020-12-29 08:25:53 -05:00
Rapptz
674f414ae0
Add attributetable to WebhookMessage
2020-12-19 06:00:21 -05:00
Rapptz
4ef6d7ec1e
Add missing attributetable to new classes
2020-12-18 21:35:27 -05:00
Rapptz
9b88c63163
Add attributetable and add some class-level sections.
...
The extensions have yet to receive this treatment and CSS needs work,
but for now this is fine.
2020-12-18 21:18:47 -05:00
Rapptz
3fe6d261f1
Add PartialMessage to allow working with channel/message_id pairs.
...
Fix #5905
2020-12-11 00:32:38 -05:00
Rapptz
44dc7a8e02
Add support for editing and deleting webhook messages.
...
Fix #6058
2020-12-09 20:15:35 -05:00
Josh
f8e428bd5b
Add support for chunking AsyncIterator objects
2020-12-03 18:32:53 -05:00
Rapptz
34f2fb36b1
Added MessageReference.resolved attribute to get replied to message
2020-11-27 02:24:39 -05:00
Rapptz
1014bfcb63
Allow MessageReference to be constructible by users
2020-11-27 01:08:52 -05:00
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
Zomatree
344cb96c5d
Add sticker support
2020-11-23 05:09:20 -05:00
Eric Chan
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
Rapptz
bf8ca58996
Add a special exception for required privileged intents
2020-09-23 03:21:20 -04:00
Rapptz
23ae084b8c
Allow finer grained control over the member cache.
2020-09-23 03:21:20 -04:00
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