Skip to main content
This guide creates PrefixEveryMessage, a small plugin that adds a configurable prefix to outgoing messages. It uses the declarative onBeforeMessageSend field, so PluginManager handles registration and cleanup.

Create the folder

Create:

Add the plugin

Replace EquicordDevs.irritably with your own author entry before submitting the plugin.

Build and test

Run:
Restart Discord, open Illegalcord Settings > Plugins, search for PrefixEveryMessage, and enable it.

Configure it

Open the plugin cog wheel and edit: Send a test message in a private test channel.

Clean up

This plugin uses a declarative field, so no manual stop() cleanup is needed. If you later add timers, event listeners, manual API registrations, or Flux subscriptions outside declarative fields, clean them up in stop().
Do not keep this plugin enabled in normal chats unless you intentionally want every sent message modified.