Discord moderation bot

Vettly Discord

Add a Discord bot that moderates chat, attachments, spam, raids, and policy actions through Vettly.

Chat + media checks
Policy presets
Decision logs
Vettly Shield
Online in #general
Message blocked

Harassment score crossed the server threshold. Message deleted, moderator log written.

action: delete_message
reason: harassment > 0.85
Safe message allowed

Vettly scanned chat content, matched the moderate policy, and returned allow.

One endpoint behind the bot
await vettly.check({ content: message.content, contentType: 'text' })

Built for live communities.

Vettly Discord gives moderators a useful first line of defense without forcing every decision into a manual queue.

Chat moderation

Scan fast-moving messages for harassment, hate, threats, sexual content, self-harm, and custom community rules.

Media attachments

Use the same Vettly decision layer for risky image and video attachments instead of bolting on a second review stack.

Spam and raids

Escalate link spam, coordinated raids, and suspicious bot-like behavior into the actions your server already understands.

Policy controls

Tune thresholds, presets, and channel behavior without rewriting bot code for every moderation rule change.

Decision history

Keep decision IDs, reasons, categories, policy versions, and timestamps available for disputes and moderator review.

Moderator workflow

Route borderline cases to humans while clear violations can be deleted, warned, logged, or escalated automatically.

Quick setup

From empty server to protected channels.

Start with a default policy, verify the bot in one test channel, then expand to the rest of the server when the actions feel right.

1Add Vettly Discord to your server.
2Choose the channels and policies that should be active.
3Send test messages and attachments through the live moderation flow.
4Review blocked, flagged, and allowed decisions in Vettly.

Moderator commands stay simple.

Server admins should not need to become trust-and-safety engineers. The bot keeps everyday controls short while Vettly carries the policy and evidence layer.

/vettly status

Confirm the bot is online and connected to Vettly.

/vettly policy moderate

Apply a starter policy to a channel.

/vettly logs

Open recent moderation decisions for review.

CASE STUDY: DISCORD BOT

One API call. Complete safety.

This Discord bot calls one Vettly endpoint. Behind that endpoint: real-time policy evaluation, graduated actions, decision logging, appeal handling, and policy versioning.

Vettly Shield
Online
BadActor101Today at 2:34 PM
I hate everyone in this server you all suck and should die
Vettly Shield APPToday at 2:34 PM
Message Blocked
This message was removed for violating community guidelines.
Action:DELETE_MESSAGEReason:harassment > 0.85
FriendlyUserToday at 2:36 PM
Hey everyone! Just finished setting up the new API integration, works perfectly 🎉
Vettly scanned in 42ms. Safe.
LATENCY
42ms P95

Building trust takes hours,
not months.

We built this complete Discord moderation bot in just an afternoon. The core decision logic? Exactly one line of code calling the Vettly API.

src/bot.ts
// Check message before it's sent to channel
const decision = await vettly.check({
content: message.text,
contentType: "text"
});
if (decision.action === 'block') {
await message.delete();
}

Bring Vettly into your server.

Start with the bot, then use the API page when you want deeper custom Discord automation.