Rapptz
185b554a56
[commands] Disallow complicated Literal types
2021-04-24 09:12:28 -04:00
Rapptz
fb024546ff
[commands] Fix Literal converter not working within flags
2021-04-24 08:55:55 -04:00
Rapptz
1c312a158a
[commands] Add FlagConverter.__iter__
2021-04-24 08:53:36 -04:00
Nadir Chowdhury
829c2d4a1a
Add Activity.buttons
2021-04-24 00:27:47 -04:00
Stella
91c473db57
[commands] Fix _HelpCommandImpl.clean_params popitem
2021-04-23 02:24:09 -04:00
Rapptz
8e9860077d
[commands] Fix flag detection code in get_flags
2021-04-23 02:23:07 -04:00
Alex Nørgaard
e09f64b7c9
Fix typo in FlagConverter docs
2021-04-22 21:12:19 -04:00
Josh
e5607822d3
Define utils.cached_property in if TYPE_CHECKING guard
2021-04-22 21:11:56 -04:00
Rapptz
275a754abd
Add support for editing message attachments
2021-04-21 23:45:06 -04:00
sudosnok
67abfea61a
Add target_user and target_type to Invite objects
2021-04-21 23:30:35 -04:00
Nadir Chowdhury
f4165755a9
Rename lingering _url Asset properties
2021-04-21 23:24:36 -04:00
jack1142
a55e817ffe
Fix documentation for RoleConverter
2021-04-21 23:24:04 -04:00
Nadir Chowdhury
157801bc90
Add Template.is_dirty
2021-04-21 23:22:22 -04:00
Josh
8457f70477
[commands] Set constructible FlagConverter flags to not be required
2021-04-21 23:21:02 -04:00
Nadir Chowdhury
1d7f387122
[docs] stage_channels doc typo
2021-04-21 23:18:49 -04:00
Josh
cfe93f19b1
[commands] Allow FlagCommand subclasses to inherit options
2021-04-21 07:16:23 -04:00
Josh
42463bae67
[commands] Add support for aliasing to FlagConverter
2021-04-21 00:31:01 -04:00
Kino
0c1c9284f6
Fix typo within HelpCommand.verify_checks
documentation
2021-04-21 00:18:32 -04:00
Rapptz
6065329c0e
[commands] Avoid creating unnecessary flag mapping copies
2021-04-20 08:02:40 -04:00
Rapptz
15bfdf66b2
[commands] Default construct flags if they're not passed as parameters
...
This only applies if and only if the flag can be default constructible.
Ergo, all the flags are optional or not required.
2021-04-20 08:00:47 -04:00
Rapptz
ac7588f735
Fix some typings in utils
2021-04-20 04:35:53 -04:00
Rapptz
212d308835
[commands] Some minor clean up of the flag converter documentation
...
Fix #6761
2021-04-19 22:52:29 -04:00
Nadir Chowdhury
7bfb0f8133
[docs] fix docstring of AppInfo
2021-04-19 22:32:07 -04:00
Arnav Jindal
2e6c28bd60
Bump Python version in Quickstart documentation
2021-04-19 22:26:56 -04:00
Rapptz
18bf3d3a7d
[commands] Actually expose the FlagError base error
2021-04-19 10:27:24 -04:00
Rapptz
ddb71e2aed
[commands] Initial support for FlagConverter
...
The name is currently pending and there's no command.signature hook
for it yet since this requires bikeshedding.
2021-04-19 10:25:08 -04:00
Rapptz
1c64689807
Remove lingering User.avatar documentation
2021-04-19 05:35:33 -04:00
Rapptz
c54e43360b
[commands] Add run_converters helper to call converters
2021-04-19 04:46:02 -04:00
Rapptz
09f3f2111c
[commands] Add Context.current_parameter
2021-04-19 04:41:32 -04:00
Rapptz
3c8d3ab078
Add a third overload to parse_time
...
Apparently this behaviour is intended in Pyright
https://github.com/microsoft/pyright/issues/1772
Despite mypy behaving as intended.
2021-04-19 02:12:41 -04:00
Rapptz
bee6402d84
Fix utils.find predicate typing to accept Any
2021-04-19 02:11:38 -04:00
Cryptex
8d74fad474
Update lavalink's repo url
2021-04-18 23:12:05 -04:00
Nadir Chowdhury
95777230b0
Add MessageType.guild_invite_reminder
2021-04-18 20:33:56 -04:00
Nadir Chowdhury
631a0b1e13
Add support for ApplicationFlags
2021-04-18 20:32:52 -04:00
Rapptz
417353da4d
Fix up _unique and valid_icon_size implementations
2021-04-18 09:07:26 -04:00
Rapptz
b35596f7c8
Add typings for discord.utils
2021-04-18 08:43:09 -04:00
Rapptz
cc4dced7c0
Cleanup some of the prior typings for cached_slot_property
2021-04-18 08:07:11 -04:00
Nadir Chowdhury
18badbc60f
Add typing for utils.cached(_slot)_property
2021-04-18 07:56:38 -04:00
Rapptz
7fb746e6e5
[commands] Refactor evaluation functions to allow passing in localns
2021-04-18 04:10:19 -04:00
Zomatree
aac0374baf
Add privacy policy and tos fields to AppInfo
2021-04-17 23:52:46 -04:00
Nadir Chowdhury
821b6c61cb
[docs] document inherited members on Asset
2021-04-17 23:40:13 -04:00
Rapptz
c2afa984ff
Use f-strings for attributetable
2021-04-17 19:40:40 -04:00
Rapptz
fdf81089b5
Add inherited members to (Partial)Emoji docs
2021-04-17 19:40:40 -04:00
Nadir Chowdhury
e4513f70ad
activities
is no longer nullable
2021-04-17 18:56:51 -04:00
Steve C
86f10f6dd6
Add missing reprs to some objects
...
These are WidgetMember, BaseUser, and DeletedReferencedMessage
2021-04-17 18:56:08 -04:00
z03h
304229071f
Add VoiceChannel.video_quality_mode
2021-04-17 08:10:41 -04:00
Rapptz
fed259a83b
Refactor save() and read() into AssetMixin
2021-04-17 00:56:38 -04:00
Rapptz
f6fcffbab5
Use default allowed_mentions in Message.edit
...
Fix #6745
2021-04-16 23:00:18 -04:00
Steve C
ef9bb79e91
[tasks] Move the Loop's sleep to be before exit conditions
...
This change makes it more so that `Loop.stop()` gracefully makes the
current iteration the final one, by waiting AND THEN returning.
The current implementation is closer to `cancel`, while also not.
I encountered this because I was trying to run a
`@tasks.loop(count=1)`, and inside it I print some text and change the
interval, and in an `after_loop`, I restart the loop.
Without this change, it immediately floods my console, due to
not waiting before executing `after_loop`.
2021-04-16 22:35:18 -04:00
Rapptz
6ba3d89076
Revert Attachment.save code to prior implementation
2021-04-16 11:38:56 -04:00