2870 Commits

Author SHA1 Message Date
Nadir Chowdhury
2ff24a27b5
Use asyncio.create_task over asyncio.ensure_future 2021-04-05 20:31:03 -04:00
Nadir Chowdhury
7a7c4b4d62
Remove fail-safe for retrieving all tasks 2021-04-05 20:29:37 -04:00
Michael H
83bd76504a
Use covariant TypeVar for protocol 2021-04-05 20:29:15 -04:00
Michael H
fbe6e2f520
[commands] Fix @classmethod converters 2021-04-05 20:25:23 -04:00
Logan
3abb2fde56
Fix versionadded not showing in docs for Attachment.content_type 2021-04-05 20:24:04 -04:00
Vaskel
88be8cc5be
Remove deprecated client methods 2021-04-05 17:44:05 -04:00
Rapptz
a3a6f88936 Add discord.utils.utcnow() helper function to ease migration 2021-04-04 23:59:04 -04:00
Rapptz
93a92e6e1b Remove special casing of MAX_ASYNCIO_SECONDS in sleep_until
This compatibility code goes away in Python versions greater than 3.7
2021-04-04 23:55:15 -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
Rapptz
7ba437cece Use 3.8 for ReadTheDocs builds 2021-04-04 20:01:37 -04:00
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta 2021-04-04 18:05:49 -04:00
James
fe54b3cb92
Flatten AsyncIterator.flatten 2021-04-04 17:46:15 -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
59aa1a0e5f Remove asyncio.Task subclass in preference to task names 2021-04-04 07:24:42 -04:00
Rapptz
94bd1b9822 Convert two missing places to f-strings 2021-04-04 07:17:03 -04:00
Rapptz
4d44872511 Remove encoding header from generated code 2021-04-04 07:06:50 -04:00
Rapptz
adaf7c6192 [commands] Use positional only parameter for Context.invoke 2021-04-04 07:04:01 -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
Rapptz
9fc2ab9c99 Bump minimum Python version to 3.8 2021-04-04 04:30:31 -04:00
Rapptz
68e379bc8b Version bump for development 2021-04-04 03:53:26 -04:00
Rapptz
757dd92272 Version bump to v1.7 v1.7.0 2021-04-04 00:54:10 -04:00
Rapptz
f6df66a971 Add missing documentation for StoreChannelConverter 2021-04-04 00:21:15 -04:00
Rapptz
6d63cf0d5d Add missing StoreChannel documentation 2021-04-04 00:17:59 -04:00
Rapptz
834a7d80aa Fix StoreChannel reference in changelog 2021-04-04 00:04:30 -04:00
Rapptz
f8964b1b32 Add content_type to changelog 2021-04-03 23:33:03 -04:00
Zomatree
f8d7be5b78
Add content_type to Attachment 2021-04-03 23:26:28 -04:00
Rapptz
5b244a7002 Add changelog for v1.7 2021-04-03 23:09:47 -04:00
Rapptz
efc30a146e Guard for None in VocalGuildChannel.members 2021-04-03 23:08:03 -04:00
Rapptz
421c0cd455 [commands] Add missing versionadded on StoreChannelConverter 2021-04-03 22:54:21 -04:00
Nadir Chowdhury
e961fdeae0
Rework the reaction roles example 2021-04-03 22:52:11 -04:00
DoggieLicc
36318bd45c
[commands] Add StoreChannelConverter 2021-04-03 22:50:17 -04:00
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods 2021-04-03 22:43:41 -04:00
Nadir Chowdhury
e8a9726ad2
[docs] Add rtc_region parameter for Guild.create_voice_channel 2021-04-02 20:10:31 -04:00
Tarek
6524869ddd
Implement voice region changing for voice channels 2021-04-01 03:49:45 -04:00
Rapptz
3576e2ee01 Add support for Permissions.request_to_speak 2021-04-01 00:53:07 -04:00
Nadir Chowdhury
6887d3946a
[docs] Fix fetch_members/guilds documentation 2021-03-31 21:27:40 -04:00
Mikey
e66141e002
[docs] suggest presence in constructor instead of change_presence 2021-03-31 21:26:51 -04:00
apple502j
954dd09e18
Deprecate Client.logout 2021-03-31 07:30:41 -04:00
Rapptz
8a24a93010 Bring back older background task example under a new name 2021-03-30 20:29:03 -04:00
Rapptz
e359aeb122 Fix background_task example to actually work 2021-03-30 20:28:41 -04:00
Sebastian Law
5ed47cacc7
Update background_task example to use ext.tasks 2021-03-30 20:24:28 -04:00
Rapptz
0c3be9713d Raise error if position could not be resolved in GuildChannel.move 2021-03-30 04:11:06 -04:00
Rapptz
7f0db1f35a Return early if no kwargs are given to GuildChannel.move 2021-03-30 03:54:58 -04:00
Rapptz
a30ad6acf2 Ignore moving category channels to another category 2021-03-30 03:51:06 -04:00
Rapptz
b850c9cd5d Add GuildChannel.move helper method to help with moving channels
Moving channels is seen as a complicated task, so hopefully this
abstracts a lot of it for users. There is no bulk move helper yet
since I'm unsure how the API for that should be.
2021-03-30 03:21:09 -04:00
Lilly Rose Berner
f60e91d700
Add support for fail_if_not_exists in MessageReference 2021-03-30 00:26:17 -04:00
Sebastian Law
d6501159e7
[docs] copy signature from overridden and inherited methods 2021-03-29 23:52:14 -04:00
Rapptz
862d509d2e [commands] Add support for stripping whitespace after the prefix
This is configured with the strip_after_prefix option in `Bot.__init__`
2021-03-28 21:21:09 -04:00
Rapptz
c4c2cbf6d2 [commands] Remove nullability from help command implementation
Fixes #5154
2021-03-28 18:51:58 -04:00