Commit Graph

19 Commits

Author SHA1 Message Date
44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
5887ce1430 Fix settings example not resetting option default state 2025-08-18 04:35:41 -04:00
22d6e8d0aa Add example showcasing how to do a settings panel 2025-08-17 19:48:18 -04:00
4be15b5616 Add example showcasing Container for Embed-like layouts 2025-08-16 06:18:36 -04:00
4f539b710f Fix type errors in all examples 2025-08-16 06:18:36 -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
f793af0456 Add item parameter to DynamicItem.from_custom_id 2023-09-03 02:52:05 -04:00
418230641c Add dynamic counter example 2023-09-03 02:52:05 -04:00
a852f90358 Add support for dynamic items that parse custom_id for state 2023-09-03 02:52:05 -04:00
4adfde1a7b Fix missing word in persistent view example 2022-12-14 19:09:45 -05:00
64849ebcc8 Remove unused import in dropdown example 2022-06-17 23:18:16 -04:00
8591cfc5e7 Run black on all examples and require it for CI 2022-03-24 23:40:59 -04:00
968a1f366f Change View callback order to (self, interaction, item)
This is more consistent with the rest of the library which always has
the interaction as the first parameter. This has been done before in
the command extension as well, the first parameter is always either
self or the context.
2022-03-24 23:00:50 -04:00
bc70ec5cfd Change persistent view example to use new setup_hook 2022-03-14 06:12:58 -04:00
5780ff5ef0 Add message content intent to examples 2022-03-06 23:04:48 -05:00
78aea51f50 Add an example for the new dropdowns 2021-07-28 19:53:06 -04:00
fc51736b34 Add a new view example for link buttons 2021-07-22 10:02:42 -04:00
7d0bd7ed20 add persistent view in on_ready to avoid loop issues 2021-06-29 20:02:55 -04:00
7386a971f8 Add examples for how to use views 2021-06-29 04:19:12 -04:00