Rapptz
217c2a1cc5
Fix stray AttributeError in Guild._from_data with member cache
4 years ago
Rapptz
40cf397ce6
Permission related fixes for v8
4 years ago
NCPlayz
4c565e5299
add reply and application_command types
4 years ago
Rapptz
7afcacc9a1
Remove MemberCacheFlags.online
v8 no longer gives enough data for this to be possible
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Josh
7f91ae8b67
[commands] use __args__ and __origin__ where applicable
4 years ago
Josh
c54c4cb215
[commands] Fix repr for Greedy
4 years ago
Rapptz
3151672cfe
[commands] Refactor typing evaluation to not use get_type_hints
get_type_hints had a few issues:
1. It would convert = None default parameters to Optional
2. It would not allow values as type annotations
3. It would not implicitly convert some string literals as ForwardRef
In Python 3.9 `list['Foo']` does not convert into
`list[ForwardRef('Foo')]` even though `typing.List` does this
behaviour. In order to streamline it, evaluation had to be rewritten
manually to support our usecases.
This patch also flattens nested typing.Literal which was not done
until Python 3.9.2.
4 years ago
Rapptz
27886e5aa4
[commands] Remove legacy ExtensionNotFound.original attribute
4 years ago
Rapptz
d5ad269b35
Fix Intents resolution in the docs
4 years ago
Rapptz
42c3ee6eed
Bring back discord module in discord.ext.commands documentation
4 years ago
Rapptz
8e299e80f8
Update Sphinx to 3.5.3
4 years ago
Rapptz
296bd069c1
Remove current module reference in commands API docs
4 years ago
Nadir Chowdhury
b20e92efd8
[docs] Fix references to Greedy
4 years ago
Nadir Chowdhury
353737239a
[commands] Minimise code duplication in channel converters
4 years ago
TheOneMusic
ec71eb2fcb
Added discord.StageChannel in documentation
4 years ago
James
bcd3a00eaf
[commands] Make `commands.Greedy` a `typing.Generic`
4 years ago
jack1142
4fee632526
Make the style of external and internal cross-references consistent
4 years ago
jack1142
4591705b55
Add missing attribute tables
4 years ago
Dan Hess
f2d5ab6f80
[commands] Provide a dynamic cooldown system
4 years ago
Rapptz
ea32147d02
Fix all warnings with Sphinx
4 years ago
Rapptz
d58edd10a7
Add missing future annotations import
4 years ago
Nadir Chowdhury
1efdef3ac3
Add typings for invites, templates, and bans
4 years ago
Nadir Chowdhury
3e92196a2b
Add typings for audit logs, integrations, and webhooks
4 years ago
Sigmath Bits
68aef92b37
[commands]Add typing.Literal converter
4 years ago
pikaninja
1952060e1a
make examples on_ready consistent
4 years ago
Cryptex
eb5356cc47
Remove user token warning in login
4 years ago
Rapptz
d38ef88686
Update issue templates to newest versions
4 years ago
Rapptz
ca84d4e2b6
[types] Snowflake can be either str or int.
4 years ago
Sebastian Law
4134a17a29
[commands] Raise error when a cog name is already registered
4 years ago
Rapptz
9da2f349e7
Use Any instead of str for Embed typings for accuracy
4 years ago
Nadir Chowdhury
d4df44375b
Add typings for models for guilds, activities, and voice
4 years ago
Sebastian Law
05c123f3ab
Use f-strings in more places that were missed
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
N-i-c-k-007
c3e0b6e123
Update joined command in basic_bot to use f-strings
4 years ago
Rapptz
e405bd5f1f
Add discord.types.Message.interaction attribute
4 years ago
Rapptz
a31c19563f
Add interaction related typings
4 years ago
Rapptz
249d94a011
Add AllowedMentions typings
4 years ago
Rapptz
d299bfef26
Fix up typings for attachment and message
4 years ago
Nadir Chowdhury
0903ea949f
Add typings for `Message`, `Emoji`, and `Member`
4 years ago
Rapptz
e895a53713
[commands] Add StageChannelConverter to documentation
4 years ago
pikaninja
1c553f51fb
[commands] Use has_error_handler instead in command_error
4 years ago
Kallum
cc6edccc0c
Make the bot template use f-strings over str.format
4 years ago
Nadir Chowdhury
f8bea3bb05
Fix inaccuracies with `AsyncIterator` typings
4 years ago
Nadir Chowdhury
87e64dff06
Add typings for channels and `PartialUser`
4 years ago
Nadir Chowdhury
83fe98c20d
Add typing for flags
4 years ago
Sebastian Law
4c72137e43
[docs] add note for possible Embed.type strings
4 years ago
Nadir Chowdhury
a43ea5c550
Fix regression in Activity relying on `try_enum`
4 years ago
Sebastian Law
ece7064e64
[docs] add label to basic converters section
4 years ago
Rapptz
a9d5c0aa3b
Fix headers in partial webhook channel and guild objects
4 years ago