Commit Graph

40 Commits

Author SHA1 Message Date
8f83267ce9 Move UnfurledMediaItem and MediaGalleryItem to interactions page 2025-08-19 21:09:09 -04:00
98d2113cdd Hide interaction_check where it isn't really applicable 2025-08-18 05:05:05 -04:00
13432591c6 Fix various docs around UI items
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-08-14 12:00:09 -04:00
3fb627d078 Add support for label components and select in modals 2025-08-14 00:47:55 -04:00
50caa3c82c Add support for components V2
Co-authored-by: Michael H <michael@michaelhall.tech>
Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com>
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-08-13 20:37:23 -04:00
680fe9bc80 Add channel select to component type documentation 2025-06-20 14:28:08 -04:00
1cdf710908 Rename InteractionCallback to InteractionCallbackResponse 2025-02-18 03:29:09 -05:00
5b78097cef Add support for Interaction Callback Resource
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-02-18 02:10:59 -05:00
df4b1c88df Move MissingApplicationID to top-level discord namespace 2024-08-31 08:51:56 -04:00
be9edf8deb Remove setting sku_id explicitly via button decorator
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-06-15 07:38:58 -04:00
356474ffb9 Add ButtonStyle.premium 2024-06-01 03:48:50 -04:00
963bb08557 Add support for Message.interaction_metadata
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-05-05 23:36:08 -04:00
2e2f51fd5c First pass at supporting user apps
Co-authored-by: red <red@kalab.sk>
Co-authored-by: Vioshim <63890837+Vioshim@users.noreply.github.com>
2024-05-04 23:25:01 -04:00
c5ecc42c72 Add support for default_values field on selects 2023-09-29 15:55:20 -04:00
a852f90358 Add support for dynamic items that parse custom_id for state 2023-09-03 02:52:05 -04:00
436d0849d9 Fix UI Kit description typo 2022-11-17 21:36:12 -05:00
5009c83bc9 Implement New Select Types
Co-authored-by: Soheab_ <33902984+Soheab@users.noreply.github.com>
Co-authored-by: rdrescher909 <51489753+rdrescher909@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-10-27 10:03:45 -04:00
354d4bace4 Add missing decorator signs for interaction documentation 2022-08-21 18:25:31 -04:00
d78be1f591 Fix Exception Hierarchy to have the proper heading 2022-08-16 22:38:57 -04:00
1fa7d7e402 Raise special CommandSyncFailure during sync for better errors
This is parsed from the error to allow for users to better debug
what exactly is causing the issue in sync.
2022-08-12 22:36:13 -04:00
e269904b26 Add :decorator: to ui.button and ui.select 2022-08-11 18:25:32 -04:00
c32567ea81 Refactor TranslationContext to be more useful
The previous enum was good at accomplishing dynamic key generation for
a few cases, but it fell short in others:

1. It could not discern group names and command names
2. It could not give you more contextual data such as the full object
   currently being translated.

On top of that, the context being a required parameter for
Translator.translate meant that it wouldn't be possible to re-use the
translator for other use cases outside of the rigid ones defined in the
library.

To alleviate these concerns, new enum attributes were added along with
a richer type for obtaining even more context.
2022-08-09 10:41:45 -04:00
1727eca106 Add app_commands.Parameter for parameter introspection 2022-08-09 07:43:40 -04:00
2d586ae805 Add initial support for app command localisation 2022-08-05 22:35:30 -04:00
3aa55ba1ed Implement Application Command Permissions models 2022-06-07 01:35:33 -04:00
bd727d2b0c Add edit and delete methods to AppCommand 2022-05-05 06:20:55 -04:00
619bc50e5d Add application command permissions to audit log 2022-05-01 18:59:57 -04:00
204f941e96 Display permissions v2 decorators in the documentation 2022-04-28 10:50:00 -04:00
e79895d824 Add Message.interaction and MessageInteraction type
Fix #7819
2022-04-01 11:15:15 -04:00
24f8f8d4a7 Rename MaxCommandsReached to CommandLimitReached 2022-03-31 23:10:13 -04:00
34b2ff40b6 Change ValueError on max commands reached to a more specific exception 2022-03-31 09:34:48 -04:00
9f83eb6032 Add application command cooldown decorators
Fix #7790
2022-03-29 00:46:42 -04:00
74b5e0ceb1 Implement some built in checks for app_commands
A lot of these implementations are adapted from the equivalent
ext.commands checks. These only implement the common ones that could
not solely be done by Discord in the future.
2022-03-28 16:36:29 -04:00
c6d0c82d66 Implement app_commands.rename decorator 2022-03-28 05:52:33 -04:00
bea6b815e2 Add support for app command checks
This does not include any built-in checks due to design considerations.
2022-03-19 01:24:53 -04:00
a4676804ec Show inherited members in InteractionMessage 2022-03-14 02:21:05 -04:00
3d74da8d70 Add missing app_commands decorators to documentation 2022-03-08 01:22:43 -05:00
8e045d39e7 Fix link referencing the wrong document 2022-03-06 01:43:26 -05:00
c9fc11b0a5 Document inherited members in ui.Modal 2022-03-05 23:17:37 -05:00
aa74238053 Reorganise documentation for interactions 2022-03-04 21:17:27 -05:00