Commit Graph
7 Commits
Author SHA1 Message Date
Wolfsblvt cd0627bfec Macros 2.0 [➕Macros] - Add {{hasExtension}} macro, and refactor extension lookup logic (#4948)
* Add {{hasExtension}} macro and refactor extension lookup logic

- Move findExtension() from extensions-slashcommands.js to extensions.js and export it
- Update findExtension() to return object with name and enabled properties instead of just name string
- Add {{hasExtension}} macro to check if an extension is enabled
- Update /extension-state and /extension-exists commands to use refactored findExtension()
- Remove duplicate findExtension() implementation from extensions-slashcommands.js

* Refactor extension action callbacks to use extension object instead of separate name and enabled properties

* fix eslint
2026-01-04 20:37:27 +02:00
Cohee 0c0582b139 Fix type errors in extensions-slashcommands 2025-07-28 22:30:47 +03:00
Cohee 0fd57a4c1c Returns doesn't support HTML, ditto 2024-09-27 01:19:45 +03:00
Cohee cf2c9a8296 Returns doesn't support HTML 2024-09-27 01:13:44 +03:00
Wolfsblvt 15bc0e4dba Squish the last bugs 2024-09-25 23:53:26 +02:00
Wolfsblvt 9fbcb12210 Fix third party extension findings + enum provider
- Allow extension names without the "third-party/" prefix
- Expand enum provider to show what third-party extensions are
2024-09-25 23:33:00 +02:00
Wolfsblvt 169504aa68 Refactor extension slash commands into own file
- Weird circle imports again with the slash command classes
2024-09-25 23:18:37 +02:00