Commit Graph

2416 Commits

Author SHA1 Message Date
59aa1a0e5f Remove asyncio.Task subclass in preference to task names 2021-04-04 07:24:42 -04:00
94bd1b9822 Convert two missing places to f-strings 2021-04-04 07:17:03 -04:00
4d44872511 Remove encoding header from generated code 2021-04-04 07:06:50 -04:00
adaf7c6192 [commands] Use positional only parameter for Context.invoke 2021-04-04 07:04:01 -04:00
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
68e379bc8b Version bump for development 2021-04-04 03:53:26 -04:00
757dd92272 Version bump to v1.7 2021-04-04 00:54:10 -04:00
f8d7be5b78 Add content_type to Attachment 2021-04-03 23:26:28 -04:00
efc30a146e Guard for None in VocalGuildChannel.members 2021-04-03 23:08:03 -04:00
421c0cd455 [commands] Add missing versionadded on StoreChannelConverter 2021-04-03 22:54:21 -04:00
36318bd45c [commands] Add StoreChannelConverter 2021-04-03 22:50:17 -04:00
1b2688518e Implement StageChannel and related methods 2021-04-03 22:43:41 -04:00
e8a9726ad2 [docs] Add rtc_region parameter for Guild.create_voice_channel 2021-04-02 20:10:31 -04:00
6524869ddd Implement voice region changing for voice channels 2021-04-01 03:49:45 -04:00
3576e2ee01 Add support for Permissions.request_to_speak 2021-04-01 00:53:07 -04:00
6887d3946a [docs] Fix fetch_members/guilds documentation 2021-03-31 21:27:40 -04:00
954dd09e18 Deprecate Client.logout 2021-03-31 07:30:41 -04:00
0c3be9713d Raise error if position could not be resolved in GuildChannel.move 2021-03-30 04:11:06 -04:00
7f0db1f35a Return early if no kwargs are given to GuildChannel.move 2021-03-30 03:54:58 -04:00
a30ad6acf2 Ignore moving category channels to another category 2021-03-30 03:51:06 -04:00
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
f60e91d700 Add support for fail_if_not_exists in MessageReference 2021-03-30 00:26:17 -04:00
d6501159e7 [docs] copy signature from overridden and inherited methods 2021-03-29 23:52:14 -04:00
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
c4c2cbf6d2 [commands] Remove nullability from help command implementation
Fixes #5154
2021-03-28 18:51:58 -04:00
4d4c19f9b5 deprecate User.relationships 2021-03-28 18:39:15 -04:00
31ee3fafc1 Add remove_markdown helper function 2021-03-28 18:38:34 -04:00
4aee7fed5d [commands] Only remove top level commands on cog load failure 2021-03-28 18:35:59 -04:00
a4d29e8cfd Add scopes to utils.oauth_url 2021-03-28 06:33:24 -04:00
d61486278f [commands] allow arbitrary callables in cooldown 2021-03-28 06:31:51 -04:00
baa1ab058b Add an optional seed parameter for Colour.random 2021-03-28 06:28:35 -04:00
8657edfc99 Fallback to empty string for unavailable guild __str__ 2021-03-25 09:11:00 -04:00
5cb5126548 Make Attachment hashable and castable to str 2021-03-25 09:08:22 -04:00
5a93e80e87 Implicitly cast Embed construction parameters to str 2021-03-24 23:13:57 -04:00
1c8d1b0289 Recreate aiohttp.FormData objects during request retries
Fixes #6531
2021-03-24 08:50:34 -04:00
a131e11c5e [commands] fix documented type for Command.checks 2021-03-24 08:24:14 -04:00
a06d00f554 Make await text appear in async Member method docs 2021-03-24 08:22:50 -04:00
456a5dfa59 Update create_dm documentation to say it's a coroutine 2021-03-24 08:19:05 -04:00
fbb7ac6be1 Add roles to guild.estimate_pruned_members 2021-03-24 08:17:34 -04:00
caa3b4e8f4 [commands] Include group args in command signature 2021-03-24 08:16:23 -04:00
7836046621 Mark User.avatar_url as attribute in Intents.members docstring
The line currently comes out to 
`User.avatar (User.avatar_url() and User.avatar_url_as())` 
but `User.avatar_url` is not callable.
2021-03-13 01:47:06 -05:00
a30a694e36 [commands] fix Context.channel property documented type 2021-03-13 01:46:31 -05:00
7d345e8e4e remove trailing whitespace 2021-03-13 00:42:25 -05:00
a3f700c11f Fix references to snowflakes being max 21 long 2021-03-02 19:04:03 -05:00
d01500bccd Fix typo with guild_discovery_grace_period_final_warning 2021-03-02 06:45:24 -05:00
259c3909a8 Fix Permissions.all_channel documentation to link attributes 2021-03-01 08:57:28 -05:00
31bbf7434b Allow AuditLogEntry to be Hashable 2021-03-01 08:55:53 -05:00
4c4d75dc29 Disallow empty sequences in Guild.query_members user_id parameter 2021-02-28 23:56:14 -05:00
a2730a32dc Add guild_id attribute to RawMessageUpdateEvent 2021-02-28 23:55:37 -05:00
f7a4bef4ff [tasks] remove redundant condition in Loop.next_iteration
self._task is only None if the Loop has never been started before, 
which means None should be returned always, regardless of how
many seconds was passed into the constructor

this didn't break anything before because self._next_iteration will
be None as well if self._task is None.
2021-02-28 23:54:44 -05:00