Skip to content
CloudCord Docs CloudCord

Plugins

Build a command, try it in CloudCord, and learn how capabilities and permission review fit together.

Your first slash command

  1. Create word-check.cx with the contents below.
  2. Open CloudCord → Add-ons → Plugins and choose Import plugin file.
  3. Review the permissions, enable the plugin, and run /wordcheck with hello world.
  4. 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-label

hide 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.