Plugins
Build a command, try it in CloudCord, and learn how capabilities and permission review fit together.
Your first slash command
- Create
word-check.cxwith the contents below. - Open CloudCord → Add-ons → Plugins and choose Import plugin file.
- Review the permissions, enable the plugin, and run
/wordcheckwithhello world. - Expect a local reply reporting two words and eleven characters.
plugin "Word Check":
needs commands.register
needs reply.local
on command "wordcheck" with text:
reply "${wordCount(text)}"Add named inputs and a fallback
plugin "Named Greeting":
needs commands.register
needs reply.local
on command "namedgreeting":
input "name" text
reply "Hello, ${name}!"with text provides the default text input. For named inputs, add input declarations inside the command body. A reply template can insert an input or call a documented function. Add else "…" after the reply for functions that can return no result.
Change an appearance target
plugin "Hide Edited Label":
needs appearance.hide
hide message-edited-labelhide and style only accept targets the runtime knows about. Check platform support in the appearance reference before distributing.
Test the plugin
Try a valid input, a missing input, and any relevant edge case. Disable the plugin and confirm the command disappears or the appearance change is reversed. For updates, repeat the check on each claimed platform.