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
Cryptex
eb5356cc47
Remove user token warning in login
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
Rapptz
99fc950510
Use f-strings in more places that were missed.
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
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
Rapptz
f49d565d51
Rename discord.types file based on relevant core module file
4 years ago
Rapptz
23fe6b46dd
Typehint discord.Embed and introduce discord.types subpackage
The discord.types subpackage is currently only used to do type hinting
of API payloads, it's very much incomplete right now and it'll be a
rather long process.
discord.Embed was typehinted and formatted using black.
4 years ago
Rapptz
f80b8d3f5d
[commands] Only replace annotation if one was given
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
ed1341012b
Add Embed.__bool__
Fixes #6661
4 years ago
Rapptz
1d5805ebcb
Revert "Remove unused group functionality"
This reverts commit d69b2f0af5
.
4 years ago
Steve C
3c9aed9102
Fix AttributeError on HTTPClient.send_file to be send_files
4 years ago
Nadir Chowdhury
7f0a398c1e
Use `format_map` instead of `format` for `Route.url`
4 years ago
Zomatree
ad68a1d04e
Add source_channel and source_guild to Webhook
4 years ago
Nadir Chowdhury
9f0c701a7a
use `typing.AsyncIterator` for iterators
4 years ago
Nadir Chowdhury
7a34de1570
[commands] Use typing.get_type_hints to resolve ForwardRefs
4 years ago
Rapptz
72275a73fa
Use non-underscore TypeVar in enum code
4 years ago
Rapptz
7e3c5f3faf
Fix some regressions from create_task change
4 years ago
Rapptz
d69b2f0af5
Remove unused group functionality
4 years ago
Rapptz
84e2ff0bc7
Reformat HTTPClient and add interaction endpoints
4 years ago
Rapptz
008432c76a
Make enum code work with typecheckers
This also makes it so invalid enum values fall back to a proxy type
that still works similar to actual values.
4 years ago
Rapptz
8cece19b22
Add on_interaction event and Interaction class.
This is the first pass at the functionality. It's currently a bit
incomplete.
4 years ago
Rapptz
1e7f139313
Add support for setting application_id
4 years ago
Rapptz
9ab58d302d
[commands] Fix classmethod converters not working.
Protocols sure are annoying.
4 years ago
Rapptz
ee5bb07c02
[commands] Revert conversion code back to how it was originally
4 years ago
ToxicKidz
0efb720cec
[commands] Fix AttributeError for classes missing convert attribute
4 years ago
Rapptz
6d74514729
[commands] Fix logic in Cog.has_error_handler()
4 years ago
Michael H
682b73abb6
[commands] Address incorrect use of subclass (from type perspective)
This is a follow up from #6641
4 years ago
Michael H
d0476e98df
[commands] Add more type information to public API of converters
4 years ago
Nadir Chowdhury
686a54eb10
Remove 3.6 check for `loop.shutdown_asyncgens()`
4 years ago
Nadir Chowdhury
2ff24a27b5
Use `asyncio.create_task` over `asyncio.ensure_future`
4 years ago
Nadir Chowdhury
7a7c4b4d62
Remove fail-safe for retrieving all tasks
4 years ago
Michael H
83bd76504a
Use covariant TypeVar for protocol
4 years ago