236 Commits

Author SHA1 Message Date
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
Josh
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
Josh
5fa64e83e0
Fix issues with imports causing NameErrors 2021-05-12 20:24:28 -04:00
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods 2021-05-10 20:24:48 -04:00
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
Rapptz
c31946f29f Type hint GuildChannel and don't make it a Protocol
This reverts GuildChannel back into a base class mixin.
2021-05-05 11:14:58 -04:00
Josh
6622be9f46
Make GuildChannel inherit Snowflake 2021-05-05 07:42:39 -04:00
Sebastian Law
b82a0dc6fd
[docs] remove mentions of bot only usability 2021-05-04 07:21:59 -04:00
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING 2021-05-03 00:31:07 -04:00
Nadir Chowdhury
c786a85a9b
Add utils.MISSING 2021-04-29 01:58:36 -04:00
Rapptz
d60689a983 Properly change abc.User.avatar type to Asset 2021-04-25 23:30:30 -04:00
z03h
304229071f
Add VoiceChannel.video_quality_mode 2021-04-17 08:10:41 -04:00
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references 2021-04-15 22:41:41 -04:00
pikaninja
23aaa75802
Add StageChannel to abc.GuildChannel docs 2021-04-13 01:19:29 -04:00
Rapptz
ef4394f87d Add support for role objects in GuildChannel.permissions_for 2021-04-11 22:45:49 -04:00
Rapptz
d85805ab6d First pass at supporting v8 API 2021-04-11 00:39:13 -04:00
TheOneMusic
ec71eb2fcb
Added discord.StageChannel in documentation 2021-04-10 13:49:46 -04:00
Rapptz
99fc950510 Use f-strings in more places that were missed. 2021-04-08 06:02:47 -04:00
Nadir Chowdhury
89456022cf
Add __all__ to remaining modules 2021-04-07 02:30:32 -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
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta 2021-04-04 18:05:49 -04:00
Rapptz
94bd1b9822 Convert two missing places to f-strings 2021-04-04 07:17:03 -04:00
Rapptz
9d39b135f4 Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00