Skip to content

About

A lightweight Discord plugin that warns users before their first message in each channel visit. Compatible with Vencord and Equicord.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

FirstMessageGuard

A Vencord / Equicord user plugin that asks for confirmation before your first message in each channel visit.

Security & Privacy

Security confirmation: The plugin source contains no outbound network requests, telemetry, analytics, or remote-service integrations. It does not collect or persist message content. It keeps only the active channel and current-visit confirmation state in memory, and uses the client’s built-in message-event and confirmation-modal APIs.

This describes the plugin’s own code; it is not a blanket security guarantee for Discord, Vencord, Equicord, or other installed plugins. Always review and install source you trust.

How It Works

  • The first time you try to send a message after entering a channel, an English confirmation dialog appears.
  • Send message allows the pending message to continue. No more warnings appear in that channel until you leave it.
  • Go back, Escape, or closing the dialog cancels that send attempt. Your draft remains in the composer, and the next attempt asks again.
  • Switching to another channel starts a new visit. Returning to a previously visited channel also starts a new visit, so the warning appears again on your next send attempt.
  • If you switch channels while the confirmation dialog is open, the pending send is cancelled to prevent sending from a stale channel visit.
  • The visit state is memory-only and resets when the plugin is stopped or the client reloads.

Installation

New to Vencord / Equicord source builds?

The following video is a visual walkthrough for setting up Vencord from source and installing custom plugins:

How to Install Custom Plugins in Vencord — YouTube

The video demonstrates Vencord. Equicord follows a similar source-build workflow. If you are installing Equicord, use the Equicord repository command below instead of cloning Vencord as shown in the video:

git clone https://github.com/Equicord/Equicord
cd Equicord

Continue with the equivalent steps in the video, using the Equicord source folder. Before adding the plugin, install Equicord's dependencies:

pnpm install --frozen-lockfile

Then download this repository as a ZIP, extract it, and move the inner firstMessageGuard folder into src/userplugins/. If the userplugins folder does not exist yet, create it inside src/ first. Do not move individual plugin files separately.

Build and inject Equicord:

pnpm build
pnpm inject

For Equicord-specific prerequisites or updated commands, use the official Equicord — Building from Source guide and official custom plugin guide.

For Vencord, use the official Vencord source installation guide and official custom plugin guide if any commands or steps in the video differ from the current instructions.

Already built Vencord or Equicord from source?

You only need the plugin folder:

  1. Download this repository as a ZIP and extract it.
  2. Open your Vencord / Equicord source directory. If src/userplugins/ does not exist, create the userplugins folder inside src/.
  3. Move the entire inner firstMessageGuard folder into src/userplugins/. Do not move individual files separately.
  4. Run pnpm build from your source directory.
  5. Fully restart Discord and enable FirstMessageGuard in Settings → Plugins. Run pnpm inject only if your source build has not yet been injected into Discord.

The plugin depends on the built-in MessageEventsAPI. The client enables this dependency automatically when FirstMessageGuard is enabled.

Compatibility

For Vencord and Equicord source builds with UserPlugins support and the MessageEventsAPI / CHANNEL_SELECT APIs. UserPlugins are not installed into ordinary prebuilt clients using the regular plugin list.

Notes

  • Confirmation is consumed when you confirm the send attempt, not when Discord confirms server delivery. A later network failure does not automatically restore the warning during that visit.
  • Only send paths that pass through the client’s MessageEventsAPI pre-send hook can be intercepted.
  • If the confirmation dialog cannot be opened, the plugin fails open so normal sending is not blocked.
  • Re-test after major Discord, Vencord, or Equicord updates.

License

Licensed under GNU General Public License v3.0 or later. See LICENSE.

About

A lightweight Discord plugin that warns users before their first message in each channel visit. Compatible with Vencord and Equicord.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages