Ryan H
c90b6cc072
Add Reaction into typehint of add_reaction()
3 years ago
NextChai
bd75e39516
Add PartialIntegration to TargetType
3 years ago
Rapptz
83de745dae
Fix Connectable.connect typing having bad inference if cls is missing
3 years ago
z03h
0d05cd273e
Add VoiceChannel and Thread to isinstance checks
3 years ago
z03h
33039dbd25
[commands] Change FlagConverter to always raise BadFlagArgument
3 years ago
Lilly Rose Berner
e9e2d8cb1c
Improve component typing
3 years ago
invalid-user
5a838f6e0b
Add more detailed description to accent_colour
3 years ago
xCirno
dfff20d5a9
Add widget_enabled attribute to Guild
3 years ago
Rapptz
f4fd87be8d
Use explicit UTF-8 encoding in SyncWebhook
3 years ago
Rapptz
accf9b411b
Fix formatting issue in webhook
3 years ago
Rapptz
97aacb4635
Pass proxy information to interactions and webhooks
Fix #7918
3 years ago
Rapptz
2ce53928d7
Fix broken HTTPClient.recreate code to actually clear session
3 years ago
Rapptz
06b85b0ec0
Fix two styling nits with fmt: off
3 years ago
Rapptz
3a10f3d432
Prefer code-block directive over :: in faq.rst
3 years ago
Rapptz
3f4d4aad17
[commands] Add support for discord.Attachment converters
3 years ago
Rapptz
ba7ebc676f
Remove unnecessary type ignore
Despite this except branch is no longer guarded, the exceptional
case could still happen if an Object is passed or if a future channel
type leads to breakage
3 years ago
Rapptz
73b967019c
Fix documentation build for Client.get_partial_messageable
3 years ago
Rapptz
53f2d63063
Fix documentation of PartialMessageable.jump_url
3 years ago
Rapptz
5ff42bb600
Add guild property to DMChannel, GroupChannel, and PartialMessageable
This improves generic duck typing programming by allowing narrowing
the types by just checking for a None guild attribute.
3 years ago
Rapptz
18ae88b791
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
xCirno
e28f0df411
Add guild avatar to on_member_update docs
3 years ago
Michael H
3a1cda5ff2
[commands] Fix typing of check/check_any
This changes the type information of check decorators to return a
protocol representing that the decorator leaves the underlying object
unchanged while having a .predicate attribute.
resolves #7949
3 years ago
Rapptz
028c7d3d14
Remove extraneous channel assignment
3 years ago
NextChai
07dcb7afba
Replace trigger_typing with awaiting typing context manager
3 years ago
z03h
861cd025f2
Fix wrong variable being returned in audit logs
3 years ago
Rapptz
638b56f474
Return a named tuple with message from ForumChannel.create_thread
3 years ago
Varun J
5afad9f7cc
[commands] fix signature when displayed_default is missing
This makes it so that passing an empty string (or MISSING) to the
displayed_default of commands.Parameter not show up as [name=] or [name=...]
3 years ago
Rapptz
8f4f35ed51
Fix remaining --verifytypes related errors
3 years ago
Rapptz
18120c4726
Update to pyright 1.1.242
3 years ago
Rapptz
89e1196abe
Install requests in CI
3 years ago
Mikey
f14139dc8f
[commands] fix BucketType.default bypassing dynamic_cooldown
3 years ago
z03h
4aa926a503
Fix attribute error for role overwrite auditlog and add threads
3 years ago
Rapptz
30be0372ef
Allow creating a news channel in create_text_channel
3 years ago
invalid-user
3f19b8e982
Rename use_slash_commands to use_application_commands
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
92445cb193
Address latest breaking change in creating forum posts
3 years ago
Shap
b98c4e3d62
Add build folder to .gitignore
3 years ago
Rapptz
b22e9e8dd7
Properly namespace MISSING in the documentation
3 years ago
Rapptz
f7190c8020
Document and export MISSING sentinel
3 years ago
killakej
447467a171
Update api.rst documentation to add timeout to on_member_update
Co-authored-by: Danny <[email protected] >
3 years ago
Alex Nørgaard
445910bd93
Add interited members to WebhookMessage docs
3 years ago
will
68ebb1c9a4
Fix typo and commas consistency in Activity doc
3 years ago
Rapptz
a88bf31af2
Sync abc.User protocol with more shared methods
This isn't *all* of them but it's a sizeable portion
3 years ago
Rapptz
a51fcf2257
Fix BanEntry not being exported despite being documented
3 years ago
Lilly Rose Berner
04b63ce07e
Support dynamic rich presence asset URLs
3 years ago
Lilly Rose Berner
aa62fa6ba4
Fix activity button type
3 years ago
Rapptz
0221a55aa6
[commands] Add support for typing.Annotated
3 years ago
Rapptz
a3528182ec
Fix type hints on GuildChannel.set_permissions
3 years ago
Lilly Rose Berner
73dbcb9b83
Add raw thread delete event
3 years ago
Hafidh
a8c66c0ab8
Add missing discord.EventStatus.ended from API docs
3 years ago
Florian Spieß
8401316e48
[commands] Allow subtracting multiple tokens from cooldown
3 years ago