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
Rapptz
b59628d69b
Add Colour.from_str factory method
This moves the command extension parsing code over to the main library
since it can be potentially useful for others.
3 years ago
lightningyx
abdb1539b8
Add narrowed overloads for edit methods on channels
3 years ago
Rapptz
49cbf46c44
Only call async setup if the loop sentinel hasn't been changed
3 years ago
Steve C
b5e880d412
Add ValueError to PartialEmoji.read docstring
3 years ago
Rapptz
96b529a5b0
Add Member.display_icon to get the rendered member icon
3 years ago
Mad Cat
f9bf19cbb1
Add NotFound to ban docstring
3 years ago
Cobalt
d177991b82
Update extensions primer in line with async breaking changes
3 years ago
lightningyx
8b3f097ce0
Fix Guild.fetch_member docstring
Co-authored-by: Danny <[email protected] >
3 years ago
Lilly Rose Berner
24a676b77d
[tasks] Fix Task.failed() only being True while error handler runs
3 years ago
Josh
1307883f56
[commands] Add overload to run_converters
3 years ago
Daniel Grant
4d39dcf373
Add NotFound to unban docstring
3 years ago
Vaskel
2127d37a21
Add self_deaf and self_mute params to voice connect methods
3 years ago
Jonah Lawrence
f54ff25949
Add filename and description kwargs for to_file
3 years ago
Rapptz
76ea0436d9
[commands] Fix broken documentation references
3 years ago
Rapptz
552324fd02
[commands] Add ForumChannelConverter to the converter mapping
3 years ago
Rapptz
5b7cc33f79
[commands] Add ForumChannelConverter converter
3 years ago
Rapptz
b20d437dc9
Add Guild.forums property
Ran an informal poll in the official server and this name won over the
alternative Guild.forum_channels property name
3 years ago
Rapptz
d8bea2b300
Fix Thread.jump_url docstring
3 years ago