Rapptz
500bf77103
Document and export MISSING sentinel
2022-04-28 07:52:23 -04:00
Rapptz
a14b43f2fd
Fix documentation links being broken
2022-04-28 00:53:51 -04:00
Rapptz
3b3d4d3880
Add support for setting and receiving permissions v2
...
Closes #7592
This does not include audit log changes or the remaining endpoints.
That will come in a different commit.
2022-04-28 00:23:36 -04:00
Lilly Rose Berner
6e2cfff2ac
Add raw member remove event
2022-04-27 22:08:04 -04:00
Rapptz
e198a0e7e6
Avoid re-creating View children on edit
...
The older code attempted to be clever and sync component additions and
removals with what the message edit is doing. In some cases, this led
to the re-creation of those components causing lost attributes to be
dropped such as `_rendered_row` which would mess up handling of view
weights.
Instead of recreating the children list every time and keeping track
of additions and removals, this change just updates the old state with
the new state while ignoring any new or removed additions. This should
work fine in theory due to additions or removals already being present
before editing the View instance in the first place.
Closes #7231 #7511
2022-04-27 01:24:10 -04:00
Lilly Rose Berner
5a06fa5f3e
Give large guilds more time to chunk before timing out
2022-04-25 13:00:14 -04:00
Lilly Rose Berner
2dbf14bb72
Separately delay ready event for each shard
2022-04-25 02:01:46 -04:00
Harshal Laheri
89eb86ecdc
Add return type for __init__
2022-04-25 02:00:27 -04:00
Lilly Rose Berner
277d35c9b2
Add raw typing event and fix typing event not working for DMs
2022-04-23 22:25:07 -04:00
will
e5f3706c02
Fix typo and commas consistency in Activity doc
2022-04-23 22:24:35 -04:00
Rapptz
69b12b97c0
Sync abc.User protocol with more shared methods
...
This isn't *all* of them but it's a sizeable portion
2022-04-23 03:00:46 -04:00
Rapptz
f045b7d63c
Fix BanEntry not being exported despite being documented
2022-04-23 01:53:21 -04:00
Lilly Rose Berner
08844985cc
Fix Client.fetch_guilds not working correctly, increase default limit
2022-04-22 22:31:33 -04:00
Lilly Rose Berner
efe24c3927
Support dynamic rich presence asset URLs
2022-04-22 20:28:45 -04:00
Lilly Rose Berner
69595b5826
Fix activity button type
2022-04-22 20:22:00 -04:00
Rapptz
5fcd4e411f
[commands] Add support for typing.Annotated
2022-04-22 06:31:02 -04:00
Rapptz
ab33551553
Fix type hints on GuildChannel.set_permissions
2022-04-22 04:50:10 -04:00
Lilly Rose Berner
3e8fa5a661
Add raw thread delete event
2022-04-22 00:42:39 -04:00
Florian Spieß
0e5c4c391d
[commands] Allow subtracting multiple tokens from cooldown
2022-04-21 12:23:20 -04:00
Rapptz
832d2c0542
[commands] Fix certain annotations being allowed in hybrid commands
...
Union types were not properly constrained and callable types were
too eagerly being converted
2022-04-21 04:13:32 -04:00
Rapptz
405c445093
[commands] Unwrap transformers when considering them as converters
2022-04-21 03:19:11 -04:00
Rapptz
5357b9319b
[commands] Ignore delete_after for ephemeral interaction sends
2022-04-21 02:07:37 -04:00
Rapptz
de941ababe
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.
2022-04-20 06:49:28 -04:00
Rapptz
84e6b9283d
[commands] Fix delete_after not working with interaction Context.send
2022-04-19 22:14:11 -04:00
Rapptz
cd0d6749ea
[commands] Fix Context.reply not working with expired interactions
2022-04-19 22:09:53 -04:00
lightningyx
19fb8ac447
Add narrowed overloads for edit methods on channels
2022-04-19 16:46:38 -04:00
Rapptz
1d97a35385
[commands] Fix hybrid commands not respecting default annotations
2022-04-19 12:08:22 -04:00
Rapptz
987235d564
Only call async setup if the loop sentinel hasn't been changed
2022-04-19 04:27:52 -04:00
Rapptz
6113f856b6
[commands] Dispatch command events for hybrid commands
2022-04-19 01:40:16 -04:00
Cryptex
7d2e5be3a1
[commands] Allow DynamicCooldownMapping factory to return None
2022-04-19 01:25:40 -04:00
Steve C
fd5886a058
Add ValueError to PartialEmoji.read docstring
2022-04-19 01:25:11 -04:00
Rapptz
2e02f618f0
Add support for enum values that aren't int, str, or float
...
This coerces them into string options to allow them to be transformed
in the actual code.
2022-04-18 20:15:45 -04:00
Rapptz
2b3cc8fe10
Add Member.display_icon to get the rendered member icon
2022-04-18 17:26:30 -04:00
Mad Cat
c885aa0b99
Add NotFound to ban docstring
2022-04-18 17:23:40 -04:00
lightningyx
482bd11ac7
Fix Guild.fetch_member docstring
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-18 06:26:32 -04:00
Lilly Rose Berner
15a6a04622
[tasks] Fix Task.failed() only being True while error handler runs
2022-04-18 06:22:53 -04:00
Willy
5456c0cae9
Add TextInput to Item docstring
2022-04-17 05:28:29 -04:00
Josh
9fcb3c8871
[commands] Add overload to run_converters
2022-04-17 05:28:16 -04:00
Daniel Grant
18a6881fd9
Add NotFound to unban docstring
2022-04-17 02:19:20 -04:00
Harmon
1bfe6b2bb1
Fix support for guilds decorator with context menu commands
2022-04-15 05:00:24 -04:00
jack1142
f9ead92239
[commands] Change Parameters header to Attributes in HybridGroup
2022-04-15 03:23:56 -04:00
Rapptz
80aa45ed31
[commands] Skip ws before processing arguments in Greedy transformer
2022-04-15 03:21:36 -04:00
Rapptz
4fb1309e2a
[commands] Mock interaction context prefix
...
Most user-level code probably expects the prefix to be valid and not
None, so mocking it to ensure it's at least a string is probably for
the best.
2022-04-14 19:12:16 -04:00
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods
2022-04-14 19:06:22 -04:00
Jonah Lawrence
862eba1e59
Add filename and description kwargs for to_file
2022-04-14 19:04:05 -04:00
Rapptz
9ff90d7863
Copy internal attributes for command decorator state
...
This allows for copies to not clear the state the decorators had
set prior.
2022-04-14 17:45:27 -04:00
Rapptz
bc07a02f68
[commands] Fix type hints for hybrid command decorators
2022-04-14 05:14:48 -04:00
Rapptz
4951231a7c
Remove command parameter from Group.on_error callback
...
Similar to the CommandTree.on_error removal, this one can be retrieved
using Interaction.command
2022-04-13 22:45:06 -04:00
Rapptz
ce15df4275
[commands] Allow commands.Range inside typing.Union or typing.Optional
2022-04-13 22:43:11 -04:00
Rapptz
cdf442bc32
Fix signature detection in CommandTree.error decorator
2022-04-13 22:30:39 -04:00