Rapptz
db58e628ba
Allow Webhook.send to send ephemeral messages
...
This is only available for application webhooks
2021-05-30 10:29:29 -04:00
Rapptz
267fad9180
Add WebhookType.application
2021-05-30 10:02:58 -04:00
Rapptz
c6f3ed1af4
Allow sending View with Interaction.response.send_message
...
This also allows for ephemeral views and listening to said views
2021-05-30 06:10:58 -04:00
Rapptz
1b15772671
Allow assigning Select.options to refresh the select menu
2021-05-30 03:20:29 -04:00
Rapptz
02c317d9a4
Fix Message.edit typings to take View parameters
2021-05-30 00:00:24 -04:00
Rapptz
7bd1211b36
Rework item grouping behaviour to take into consideration weights
...
This also renames `group` into `row`
2021-05-29 23:58:37 -04:00
Rapptz
695662416a
Fix Messageable.send overload to take view parameters
2021-05-29 08:01:37 -04:00
Rapptz
c21d12be5e
Check future state before setting result in View
2021-05-29 05:52:05 -04:00
Rapptz
d78e5d979d
Refactor and type hint invites
2021-05-29 05:49:19 -04:00
Rapptz
5a68d3a561
Typehint AllowedMentions
2021-05-29 04:26:21 -04:00
Rapptz
5a9cbc967b
Typehint mixins
2021-05-29 02:44:31 -04:00
Rapptz
794327cdb4
Fix type errors with required keys in the integration types
2021-05-29 01:09:07 -04:00
Rapptz
1ae40a11b7
Fix some type errors in StreamIntegration.edit
2021-05-29 00:54:31 -04:00
Rapptz
06743dd434
Make StreamIntegration.role a property rather than a strong reference
2021-05-29 00:50:56 -04:00
Rapptz
732c5384fd
Allow registering a View for persistent long term dispatching
2021-05-29 00:44:08 -04:00
Maya
4d7822493f
Add support for bot integrations
2021-05-29 00:43:33 -04:00
Rapptz
7e1f8bf1b4
Typehint Sticker
2021-05-29 00:19:11 -04:00
Michael H
52678b2eb5
[commands] Add Command.extras
2021-05-29 00:18:02 -04:00
Zomatree
b48f510e15
Add invite targets for voice channel invites
2021-05-29 00:15:46 -04:00
Rapptz
f321efd4de
Default SelectOption.value to the label if not given
2021-05-28 09:43:15 -04:00
Rapptz
b84c199c70
Allow constructing SelectOption.emoji from a string as well
2021-05-28 09:40:49 -04:00
Rapptz
c475218112
Typehint Role and RoleTags
2021-05-28 08:54:45 -04:00
Rapptz
35bef7af38
Fix Role.is_assignable() computing Guild.me twice
2021-05-28 08:41:45 -04:00
Rapptz
f4fe247813
Remove __slots__ from View
2021-05-28 08:39:34 -04:00
TheOneMusic
9ba5745e68
Check for guild owner in Role.is_assignable()
2021-05-28 08:18:49 -04:00
Rapptz
ef9f61a933
Add support for select components
2021-05-28 05:34:21 -04:00
Rapptz
6874aa73c4
Add PartialEmoji.from_str helper
2021-05-28 05:34:21 -04:00
Rapptz
ff36aedf7b
Add support for reading SelectMenu components from messages
2021-05-28 05:34:21 -04:00
Rapptz
8bd17ede47
Move ActionRow to its own separate type split from Component
2021-05-28 02:11:10 -04:00
Rapptz
aeb2cfb573
Add private get_slots utility to get slots through MRO
2021-05-28 01:56:48 -04:00
Rapptz
263f45d05b
Fix View.wait not returning when it times out
...
This also makes it so it returns the reason why the wait finished.
2021-05-28 00:53:28 -04:00
Rapptz
3f60997630
Add a timeout callback for detecting when a View times out
2021-05-28 00:53:28 -04:00
Rapptz
97f308d219
Add View.remove_item and View.clear_items
2021-05-28 00:53:28 -04:00
Rapptz
3453992ce6
Add View.interaction_check for interaction pre-conditions
2021-05-28 00:53:28 -04:00
Tyler
6c8f1ccbdf
Add Role.is_assignable()
2021-05-28 00:53:23 -04:00
Rapptz
65db814d4a
Add a way to wait for a view to finish its interactions
2021-05-27 23:31:48 -04:00
MrKomodoDragon
77ed476129
Fix extraneous colons in the documentation for ButtonStyle
2021-05-27 22:34:31 -04:00
Zomatree
6cc3e572ba
Button labels can be None
2021-05-27 22:33:13 -04:00
Michael H
1bf782fcb5
Add Member.get_role
...
Adds an efficient way to check if a member has a role by ID.
This is done in a way consistent with the existing user API of the
library.
The more debated Member.has_role_id/has_role is intentionally not
included for review at this time given the heavy bikeshedding of it.
2021-05-27 22:31:49 -04:00
Rapptz
1954861668
Add warning for comparing with role positioning
2021-05-27 21:11:17 -04:00
Rapptz
fc64ffdabd
Allow passing multiple embeds in InteractionResponse.edit_message
2021-05-27 21:07:28 -04:00
Rapptz
fbafe20e51
Allow View to be instantiated without subclassing
2021-05-27 01:41:18 -04:00
Rapptz
c89882441c
Fix typings for resolved channels in slash commands
2021-05-27 00:53:14 -04:00
Rapptz
7584834dd4
Only automatically defer if no response was given in callback
2021-05-27 00:53:14 -04:00
Rapptz
3b83f60b35
Add support for setting interaction responses
2021-05-27 00:53:14 -04:00
Rapptz
85758a75b3
Add interaction related endpoints to async webhook
2021-05-27 00:53:14 -04:00
Rapptz
d42c63e186
Fix some type hints in interactions
2021-05-27 00:53:14 -04:00
AXVin
2ad2cab50c
[Interactions] Create User only when in DMs
2021-05-27 00:53:14 -04:00
Rapptz
5e96ad9261
Force button style to link if a URL is passed
2021-05-27 00:53:14 -04:00
Rapptz
80fd222ca0
Add aliases for button style colours
2021-05-27 00:53:14 -04:00