Commit Graph
257 Commits
Author SHA1 Message Date
Omkaar 1e4908b403 Add ForumChannel to abc.GuildChannel docstring 2022-04-12 04:55:56 -04:00
Omkaar 348764583d Add jump_url property to channels 2022-04-12 00:23:15 -04:00
Rapptz c284145f18 Add and remove some versionadded directives 2022-04-10 17:12:56 -04:00
Rapptz 23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
UltimateSppy765 3378435bf0 Update abc.Messageable docs to show VoiceChannel 2022-04-03 06:32:40 -04:00
Rapptz 2aca705b95 Add support for sending messages and managing webhooks in VoiceChannel 2022-04-02 11:14:03 -04:00
Rapptz a5f1c2f592 Take into consideration member timeouts in permission calculations 2022-04-01 09:32:54 -04:00
jack1142 5ffa3e85de Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -04:00
Josh 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
chromacoat dreamkey 095aaa9ad1 Change wording of InvalidArgument removal in docs 2022-03-11 23:25:43 -05:00
Rapptz 4b2c2b231d Fix type checker errors in Connectable and Messageable 2022-03-07 18:05:43 -05:00
Alex Nørgaard 7ff6850f17 Fix abc.User protocol requirements 2022-03-07 02:15:46 -05:00
Sebastian Law 1dccd70b05 Fix refs to abc.Connectable.connect 2022-03-06 18:46:10 -05:00
Sebastian Law 4a5057551a Fix typo in circular comment 2022-03-05 22:59:48 -05:00
Stocker 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
Josh 147948af9b Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
Josh 2b69b5d545 Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
Rapptz 0ed745f5ae Remove regular context manager support from Typing 2022-02-23 16:05:08 -05:00
Rapptz d01e73fca5 Document more uses of type ignore 2022-02-21 23:08:26 -05:00
Rapptz c7c6d74d8d Fix type errors in the abc module 2022-02-21 22:38:36 -05:00
Kaylynn Morgan 588cda0996 Refactor AsyncIter to use 3.6+ asynchronous generators 2022-02-19 21:58:13 -05:00
jack1142 dc19c6c7d5 Add positional-only arguments in more places 2022-02-19 20:28:01 -05:00
jack1142 de85eacbf5 Remove incorrect note about isinstance check for abc.Connectable 2022-02-18 20:35:54 -05:00
Rapptz 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
Imayhaveborkedit f586f4dfbd Clarify connect() requires Intents.voice_states 2021-08-24 00:02:21 -04:00
Rapptz 490bbffc93 Remove in-place edits and return fresh instances instead
Fixes #4098
2021-08-23 23:46:50 -04:00
Josh d09993d7e7 Remove created_at from Snowflake Protocol 2021-08-22 05:28:10 -04:00
Rapptz 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
LightSage 13a47dfe6e Fix docs for stickers 2021-07-31 19:40:41 -04:00
SYCKGit 56f800de9c Add Thread to Messageable docstring 2021-07-30 21:27:24 -04:00
Nadir Chowdhury 60d82cf908 implement guild stickers 2021-07-30 21:25:41 -04:00
PythonCoderAS 51b02f2568 Change type to be compatible with the overwrites property 2021-07-28 19:59:38 -04:00
Josh 41e2d3c637 Allow callables in abc.Connectable.Connect 2021-07-28 19:58:01 -04:00
AkshuAgarwal 85f3e11ef1 Fix Example Usage in docs 2021-07-28 19:56:12 -04:00
z03h dd5fc656d9 Fix permissions_for for roles 2021-07-21 02:51:46 -04:00
Lilly Rose Berner 5b8be9a772 Add PartialMessage to list of allowed message reference types 2021-07-21 02:45:01 -04:00
Nadir Chowdhury e2624b9a31 [commands] Fix (Partial)MessageConverter to work with thread messages 2021-07-10 03:11:34 -04:00
Rapptz 99b8ae35ba Change _Overwrite to get dict entries rather than mutate 2021-07-07 20:19:17 -04:00
Rapptz a2b10a08b9 Fix KeyError due to refactoring mistake in Overwrite handling 2021-06-28 23:51:56 -04:00
Rapptz 55c7de82d3 Type and format abc.py
There's still some stuff missing but this is a decent first pass
2021-06-28 23:36:20 -04:00
Aomi Vel 47e6a754e4 Add support for sending multiple embeds 2021-06-27 23:52:48 -04:00
JoshandRiley Shaw 233d10649c [docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-06-27 23:43:49 -04:00
Rapptz 695662416a Fix Messageable.send overload to take view parameters 2021-05-29 08:01:37 -04:00
Rapptz d78e5d979d Refactor and type hint invites 2021-05-29 05:49:19 -04:00
Zomatree b48f510e15 Add invite targets for voice channel invites 2021-05-29 00:15:46 -04:00
Rapptz 98570793e4 Add initial support for buttons and components 2021-05-27 00:53:13 -04:00
numbermaniac 3b55573777 Fix minor typo in typing() docs 2021-05-25 02:23:14 -04:00
pikaninja 3cb093c709 Add a note about overwriting in set_permissions 2021-05-23 05:08:15 -04:00
MrKomodoDragon cc8a86a4bd Improve the example for abc.Messageable.typing 2021-05-23 03:37:55 -04:00