Commit Graph

2362 Commits

Author SHA1 Message Date
e090ee4308 Fix NameError with invoked_parents 2021-02-24 21:15:10 -05:00
b903066e4d Allow for callable class factories in abc.Connectable.connect 2021-02-24 21:14:42 -05:00
01d8502c83 [commands] Added tribool behaviour to HelpCommand.verify_checks 2021-02-24 05:40:35 -05:00
2f15e7d8e4 fix mention_author in send causing unexpected allowed mentions 2021-02-24 03:06:44 -05:00
53bf1919c7 Fix docstring for Guild.create_role 2021-02-24 02:06:02 -05:00
fb773dc1dd Add remaining template endpoints 2021-02-23 03:58:03 -05:00
6f748e5da5 Add remaining v6 message types 2021-02-23 03:57:11 -05:00
48b748e340 [commands] properly assign ctx.invoked_with with ctx.
resolves #6461
2021-02-23 03:39:08 -05:00
1afc127458 [commands] Add Context.invoked_parents 2021-02-23 03:39:08 -05:00
427e387a2f Deprecate non-bot methods 2021-02-23 03:36:37 -05:00
1cbc537734 [commands] Allow relative paths when handling extensions 2021-02-23 03:29:04 -05:00
cc55a28be5 Fix typo in Guild.fetch_member docs 2021-02-22 08:51:34 -05:00
abfc07f968 Fix up previous PR mistake with intentional backslashes 2021-02-21 07:35:31 -05:00
a0c1d6f6c5 Fix backslashes showing up in the docs 2021-02-21 07:32:11 -05:00
ceab8ff638 [tasks] make __call__ actually appear in the docs 2021-02-21 07:19:10 -05:00
66b834b332 Document BanEntry 2021-02-21 00:12:30 -05:00
27c7fb6aed Add User.mutual_guilds 2021-02-20 19:29:19 -05:00
a8f44174ba Add Permissions.use_slash_commands 2021-02-18 07:28:37 -05:00
272339d5e6 Add support for the new permission serialization scheme. 2021-02-18 07:26:20 -05:00
fafc3d9185 Fix ZeroDivisionError in DiscordVoiceWebSocket.average_latency 2021-02-18 06:53:08 -05:00
88c23125ff Allow CustomActivity emoji to be constructed as documented.
Fix #4049
2021-02-18 00:43:19 -05:00
0cd1a88316 Clarify Message.nonce documentation
Fix #2451
2021-02-18 00:23:58 -05:00
16e0adb315 [commands] Handle positional-only parameters in bot commands 2021-02-17 23:48:09 -05:00
491b426205 Fix documentation with reference in GroupChannel.permissions_for 2021-02-17 04:16:38 -05:00
a0404807d5 [commands] Add support for rgb function in ColourConverter
This also adds support for 3 digit hex.

Fixes #6374
2021-02-07 07:18:56 -05:00
68eb844d48 [commands] Add discord.Guild converter and GuildNotFound error
* Add discord.Guild converter and GuildNotFound error

* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None

* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
2021-02-07 05:32:33 -05:00
af67256949 Ensure Message.call is None by default
`Message` has an attribute `call` which is claimed to have type
`Optional[CallMessage]`. 

But `Message` doesn't actually ensure that `call` is initialized to a value in
`__init__`. This commit fixes that inconsistency.
2021-02-06 05:42:22 -05:00
0d1e15bbc2 Add versionchanged to guild.create_role 2021-01-26 23:35:52 -05:00
61884dd9ac Use member provided data in typing_start event if not in cache
Apparently Discord had this all along.

ref: #5965, #5983
2021-01-24 05:21:13 -05:00
0d8ac41551 [commands] Fix documented type of Context.cog 2021-01-24 05:17:47 -05:00
fb9aa2486d Add PartialEmoji.url_as 2021-01-24 05:17:47 -05:00
050bf74f5d Clarify on_raw_message_edit cached message nature 2021-01-18 04:55:59 -05:00
d752916995 Add MessageReference.jump_url 2021-01-17 00:21:00 -05:00
fce67c32c9 Add spoiler attribute to File 2021-01-17 00:18:10 -05:00
b7c7200f4d [commands] Add linesep kwarg to Paginator 2021-01-17 00:15:36 -05:00
d7b41e0a21 Fix User public flags not updating 2021-01-17 00:09:15 -05:00
c5a44d8303 Version bump for development 2021-01-16 05:41:21 -05:00
c72dbf28ba [commands] Fix Command duplicates in HelpCommand.get_bot_mapping 2021-01-16 05:36:08 -05:00
941e1efcb6 PartialMessage.edit returns a full Message 2021-01-15 07:10:20 -05:00
b9a99238e8 [commands] Add Command/Cog.has_error_handler
This allows querying the state without relying on internal undocumented
attributes.
2021-01-15 06:00:45 -05:00
73a783cd6b Strip both - and _ from newcog class names 2021-01-15 05:34:05 -05:00
69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
eeafc9363f [commands] Add PartialMessageConverter 2021-01-15 05:26:03 -05:00
ed2650f786 Fix documented type of Command.usage 2021-01-14 03:17:18 -05:00
bbbda4ec00 Update add_roles docstring to mention role order. 2021-01-14 03:11:58 -05:00
bc0e214b98 [commands] Correct ChannelNotFound docstring 2021-01-12 02:34:23 -05:00
fc65526e9c Bump version to 1.6 2021-01-07 23:57:15 -05:00
442962596e Dispatch user updates if the global cache gets stale in update events 2021-01-07 23:57:14 -05:00
3a75816ba1 Support setting the preferred locale via Guild.edit
Fix #6267
2021-01-05 22:43:22 -05:00
5c868ed871 Fix SyntaxError from PR implementing presences in member querying 2021-01-01 09:37:47 -05:00