# A Discord logging bot for joins, edits and deletes

> Keep a record of your server in one channel: joins and leaves, deleted and edited messages, role and nickname changes, bans, channels, roles and voice.

Source: https://buildcord.dev/templates/logging/
Updated: 2026-11-05
Publisher: Buildcord (https://buildcord.dev)

The bot posts a short card in #server-log whenever something changes: someone joins or leaves, a message is deleted or edited, a member's roles or nickname change, someone is banned or unbanned, a channel or role is made or deleted, or someone joins, moves or leaves voice. Accounts less than a week old are flagged when they join.

Plan: Paid. Every entry in the log is a server event, which needs a bot that stays connected to Discord, on the Paid plan.
Add it to a server: https://app.buildcord.dev/templates/logging

## What it does

1. Something happens in the server, such as a message being deleted.
2. The flow for that event fills in a card: who, where and what changed.
3. It posts the card in #server-log without pinging anyone.
4. Deletes and edits in the log channel itself are skipped, so the log doesn't log itself.

## Before you add it

- A channel named server-log that only moderators can see.
- The Server Members and Message Content intents turned on for your application in the Discord Developer Portal.

## What you can change

- Delete the flows for events you don't want logged, such as voice.
- Send some events to another channel, such as messages to #message-log.
- Change a card's colour or wording in the Embeds page.

## Questions

### Why does a deleted message sometimes say the bot didn't see it?

Discord doesn't say what a deleted message said. The bot remembers the recent messages it saw sent, so one from before it started, or from long ago, can't be shown.

### Does it log who deleted a message?

No. Discord tells bots whose message was deleted, not who deleted it. Your server's audit log shows deletions by moderators.

Step-by-step guide: [How to log deleted messages on Discord](https://buildcord.dev/guides/discord-log-deleted-messages/)
