5fe54b3ae6
Remove __slots__ from abc protocols
...
Fix #8354
2022-08-19 19:10:19 -04:00
6381b5a8f4
Change abc.GuildChannel.overwrites to have Object keys if cache failed
...
Ultimately despite it not being the prettiest, Object keys ended up
being the sanest solution to this without destroying ergonomics.
2022-08-06 14:46:52 -04:00
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
2022-08-04 22:46:02 -04:00
52f3a3496b
Update docs for abc.Messageable.pins()
2022-07-17 01:07:33 -04:00
5de9287902
Change abc.PrivateChannel to be a proper subclass
...
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
2022-07-04 05:48:02 -04:00
96e6261d61
Change default for purge oldest_first to match history
2022-06-13 04:54:08 -04:00
4c74523794
Fix versionadded docstrings in voice connect methods
2022-05-27 04:15:23 -04:00
77baa06a99
Fix bug in permission resolution when dealing with timed out members
...
This would lead to timed out members having the read_messages
permission set to True instead of False
2022-05-23 11:56:05 -04:00
04f5fcf741
Fix Connectable.connect typing having bad inference if cls is missing
2022-05-16 15:34:51 -04:00
300fb0411e
Replace trigger_typing with awaiting typing context manager
2022-05-02 04:36:18 -04:00
fedfe5bec2
Add PartialChannel to list of implementing classes for Messageable
2022-05-01 13:05:07 -04:00
89eb86ecdc
Add return type for __init__
2022-04-25 02:00:27 -04:00
69b12b97c0
Sync abc.User protocol with more shared methods
...
This isn't *all* of them but it's a sizeable portion
2022-04-23 03:00:46 -04:00
ab33551553
Fix type hints on GuildChannel.set_permissions
2022-04-22 04:50:10 -04:00
89b9f1616c
Add self_deaf and self_mute params to voice connect methods
2022-04-14 19:06:22 -04:00
1e4908b403
Add ForumChannel to abc.GuildChannel docstring
2022-04-12 04:55:56 -04:00
348764583d
Add jump_url property to channels
2022-04-12 00:23:15 -04:00
c284145f18
Add and remove some versionadded directives
2022-04-10 17:12:56 -04:00
23f6876492
Add initial support for forum channels
...
Closes #7652
2022-04-06 23:02:58 -04:00
3378435bf0
Update abc.Messageable docs to show VoiceChannel
2022-04-03 06:32:40 -04:00
2aca705b95
Add support for sending messages and managing webhooks in VoiceChannel
2022-04-02 11:14:03 -04:00
a5f1c2f592
Take into consideration member timeouts in permission calculations
2022-04-01 09:32:54 -04:00
5ffa3e85de
Update comments after # type: ignore
to be compatible with PEP 484
2022-03-27 22:26:34 -04:00
e01d4a31eb
Replace invariant container types with wider types where applicable
2022-03-17 07:26:01 -04:00
5aa696ccfa
Fix typing issues and improve typing completeness across the library
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
Co-authored-by: Josh <josh.ja.butt@gmail.com >
2022-03-13 23:52:10 -04:00
095aaa9ad1
Change wording of InvalidArgument removal in docs
2022-03-11 23:25:43 -05:00
4b2c2b231d
Fix type checker errors in Connectable and Messageable
2022-03-07 18:05:43 -05:00
7ff6850f17
Fix abc.User protocol requirements
2022-03-07 02:15:46 -05:00
1dccd70b05
Fix refs to abc.Connectable.connect
2022-03-06 18:46:10 -05:00
4a5057551a
Fix typo in circular comment
2022-03-05 22:59:48 -05:00
554d2d7c99
Add the suppress_embeds parameter to send methods
...
Modified the following methods:
- abc.Messageable.send
- Webhook.send
- SyncWebhook.send
- InteractionResponse.send_message
2022-03-05 22:19:33 -05:00
147948af9b
Use typing.Self throughout library
2022-03-01 07:53:24 -05:00
2b69b5d545
Remove discord.InvalidArgument
...
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
0ed745f5ae
Remove regular context manager support from Typing
2022-02-23 16:05:08 -05:00
d01e73fca5
Document more uses of type ignore
2022-02-21 23:08:26 -05:00
c7c6d74d8d
Fix type errors in the abc module
2022-02-21 22:38:36 -05:00
588cda0996
Refactor AsyncIter to use 3.6+ asynchronous generators
2022-02-19 21:58:13 -05:00
dc19c6c7d5
Add positional-only arguments in more places
2022-02-19 20:28:01 -05:00
de85eacbf5
Remove incorrect note about isinstance check for abc.Connectable
2022-02-18 20:35:54 -05:00
9c066a8cf6
Refactor internal message sending and editing parameter passing
...
This reduces some repetition in many functions and is ripped out of
the webhook code. This also removes the unused HTTP functions for
interaction responses since those belong in the webhook code rather
than the HTTPClient.
2022-02-18 07:47:59 -05:00
f586f4dfbd
Clarify connect() requires Intents.voice_states
2021-08-24 00:02:21 -04:00
490bbffc93
Remove in-place edits and return fresh instances instead
...
Fixes #4098
2021-08-23 23:46:50 -04:00
d09993d7e7
Remove created_at from Snowflake Protocol
2021-08-22 05:28:10 -04:00
1279510194
Add support for PartialMessageable instances
...
This allows library users to send messages to channels without fetching
it first.
2021-08-10 09:24:49 -04:00
13a47dfe6e
Fix docs for stickers
2021-07-31 19:40:41 -04:00
56f800de9c
Add Thread to Messageable docstring
2021-07-30 21:27:24 -04:00
60d82cf908
implement guild stickers
2021-07-30 21:25:41 -04:00
51b02f2568
Change type to be compatible with the overwrites property
2021-07-28 19:59:38 -04:00
41e2d3c637
Allow callables in abc.Connectable.Connect
2021-07-28 19:58:01 -04:00
85f3e11ef1
Fix Example Usage in docs
2021-07-28 19:56:12 -04:00