Nadir Chowdhury
157801bc90
Add Template.is_dirty
4 years ago
Josh
8457f70477
[commands] Set constructible FlagConverter flags to not be required
4 years ago
Nadir Chowdhury
1d7f387122
[docs] stage_channels doc typo
4 years ago
Josh
cfe93f19b1
[commands] Allow FlagCommand subclasses to inherit options
4 years ago
Josh
42463bae67
[commands] Add support for aliasing to FlagConverter
4 years ago
Kino
0c1c9284f6
Fix typo within `HelpCommand.verify_checks` documentation
4 years ago
Rapptz
6065329c0e
[commands] Avoid creating unnecessary flag mapping copies
4 years ago
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.
4 years ago
Rapptz
ac7588f735
Fix some typings in utils
4 years ago
Rapptz
212d308835
[commands] Some minor clean up of the flag converter documentation
Fix #6761
4 years ago
Nadir Chowdhury
7bfb0f8133
[docs] fix docstring of AppInfo
4 years ago
Arnav Jindal
2e6c28bd60
Bump Python version in Quickstart documentation
4 years ago
Rapptz
18bf3d3a7d
[commands] Actually expose the FlagError base error
4 years ago
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.
4 years ago
Rapptz
1c64689807
Remove lingering User.avatar documentation
4 years ago
Rapptz
c54e43360b
[commands] Add run_converters helper to call converters
4 years ago
Rapptz
09f3f2111c
[commands] Add Context.current_parameter
4 years ago
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.
4 years ago
Rapptz
bee6402d84
Fix utils.find predicate typing to accept Any
4 years ago
Cryptex
8d74fad474
Update lavalink's repo url
4 years ago
Nadir Chowdhury
95777230b0
Add `MessageType.guild_invite_reminder`
4 years ago
Nadir Chowdhury
631a0b1e13
Add support for ApplicationFlags
4 years ago
Rapptz
417353da4d
Fix up _unique and valid_icon_size implementations
4 years ago
Rapptz
b35596f7c8
Add typings for discord.utils
4 years ago
Rapptz
cc4dced7c0
Cleanup some of the prior typings for cached_slot_property
4 years ago
Nadir Chowdhury
18badbc60f
Add typing for `utils.cached(_slot)_property`
4 years ago
Rapptz
7fb746e6e5
[commands] Refactor evaluation functions to allow passing in localns
4 years ago
Zomatree
aac0374baf
Add privacy policy and tos fields to AppInfo
4 years ago
Nadir Chowdhury
821b6c61cb
[docs] document inherited members on `Asset`
4 years ago
Rapptz
c2afa984ff
Use f-strings for attributetable
4 years ago
Rapptz
fdf81089b5
Add inherited members to (Partial)Emoji docs
4 years ago
Nadir Chowdhury
e4513f70ad
`activities` is no longer nullable
4 years ago
Steve C
86f10f6dd6
Add missing reprs to some objects
These are WidgetMember, BaseUser, and DeletedReferencedMessage
4 years ago
z03h
304229071f
Add VoiceChannel.video_quality_mode
4 years ago
Rapptz
fed259a83b
Refactor save() and read() into AssetMixin
4 years ago
Rapptz
f6fcffbab5
Use default allowed_mentions in Message.edit
Fix #6745
4 years ago
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`.
4 years ago
Rapptz
6ba3d89076
Revert Attachment.save code to prior implementation
4 years ago
Rapptz
9eaf1e85e4
Rewrite Asset design
This is a breaking change.
This does the following transformations, assuming `asset` represents
an asset type.
Object.is_asset_animated() => Object.asset.is_animated()
Object.asset => Object.asset.key
Object.asset_url => Object.asset_url
Object.asset_url_as => Object.asset.replace(...)
Since the asset type now requires a key (or hash, if you will),
Emoji had to be flattened similar to how Attachment was done since
these assets are keyed solely ID.
Emoji.url (Asset) => Emoji.url (str)
Emoji.url_as => removed
Emoji.url.read => Emoji.read
Emoji.url.save => Emoji.save
This transformation was also done to PartialEmoji.
4 years ago
Nadir Chowdhury
57dbb37a52
Add `fetch_message` for webhooks
4 years ago
Nadir Chowdhury
b610998491
Remove Sticker.preview_image
4 years ago
Nadir Chowdhury
5dec62f4c0
[commands] Add a converter for discord.Object
4 years ago
Rapptz
a30ec197c2
Some initial response typings
4 years ago
NoName
74f92387ac
Add periods to sticker docs
4 years ago
Nadir Chowdhury
d3ac191a67
Restrict snowflake regexes to 15-20 digits
4 years ago
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
4 years ago
pikaninja
ffea48f218
[commands] Remove HelpCommand.clean_prefix ( #6736 )
4 years ago
Rapptz
90d59bb06c
Fix overloads on Webhook.send to not require wait kwarg
4 years ago
Rapptz
0542b129c2
Fix WebhookMessage.edit documentation
4 years ago
Rapptz
1f74b051a8
Fix rate limit handling with retry_after precision change
4 years ago