490bbffc93
Remove in-place edits and return fresh instances instead
...
Fixes #4098
2021-08-23 23:46:50 -04:00
36b9bc8ee3
Add interaction.data to docs
2021-08-18 00:25:30 -04:00
66871f329e
Interaction.channel can be a PartialMessageable rather than Object
...
This allows it to work just fine in DMs
2021-08-10 09:28:14 -04:00
ecf239d2a2
Fix user cache acting incorrectly with evictions
...
The first issue involved copied users which would lead to user updates
causing faster evictions of the cache than was expected.
The second issue involved users that weren't bound to an internal
lifetime eviction policy. These users would not get evicted.
For example, a user without mutual guilds or being part of the internal
cache in general (messages, DMs) would never end up being evicted for
some strange reason. To handle this case, store_user would get a
counterpart named create_user which would create a user without
potentially storing them in the cache. That way only users with a
bound lifetime within the library would be stored.
2021-07-29 01:43:23 -04:00
c748e4bce5
Mention ephemeral messages can only be edited with raw method
2021-07-03 21:45:15 -04:00
6a553b2347
Fix building docs due to missing InteractionMessage in __all__
2021-07-03 13:24:57 -04:00
0b577fa209
Add support for fetching the original interaction response message
2021-07-03 11:00:48 -04:00
bba4d6c4e4
Fix typo with exception name in InteractionResponse
2021-07-03 08:49:07 -04:00
8760b01e76
Add Interaction.permissions to get resolved permissions
2021-07-03 07:07:54 -04:00
12e90f9c6d
Type hint instance variables in interactions
2021-07-03 06:56:30 -04:00
7ca90874b9
Raise an exception if an interaction has been responded before
...
Fix #7153
2021-07-03 00:30:32 -04:00
1059c02df7
Update examples of interactions to mention components
2021-07-02 21:58:06 -04:00
2d597e310b
Fix Interaction.channel being None in threads
2021-07-01 07:49:44 -04:00
ee26b58c6c
None check in InteractionResponse.edit_message
2021-06-10 07:28:26 -04:00
d0097c4281
Remove view syncing before editing in views
...
This prevents a potential race condition when a MESSAGE_UPDATE is
received syncing and refreshing the view components causing a desync.
2021-05-31 05:50:40 -04:00
4a3491cc0a
Check for view finished state before resuming listening on edit
2021-05-31 00:18:06 -04:00
61a189c217
Sync views in InteractionResponse.edit_message
2021-05-31 00:09:15 -04:00
7b1c57ed60
Add support for interaction followups
2021-05-30 11:25:15 -04:00
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
fc64ffdabd
Allow passing multiple embeds in InteractionResponse.edit_message
2021-05-27 21:07:28 -04:00
3b83f60b35
Add support for setting interaction responses
2021-05-27 00:53:14 -04:00
d42c63e186
Fix some type hints in interactions
2021-05-27 00:53:14 -04:00
2ad2cab50c
[Interactions] Create User only when in DMs
2021-05-27 00:53:14 -04:00
cc800796a2
Properly guard for DMs in interaction creation
...
Fix #6794
2021-05-27 00:53:14 -04:00
98570793e4
Add initial support for buttons and components
2021-05-27 00:53:13 -04:00
a31c19563f
Add interaction related typings
2021-04-08 02:12:55 -04:00
8cece19b22
Add on_interaction event and Interaction class.
...
This is the first pass at the functionality. It's currently a bit
incomplete.
2021-04-06 01:11:36 -04:00