A Discord logging bot for joins, edits and deletes
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.
What it does
- Something happens in the server, such as a message being deleted.
- The flow for that event fills in a card: who, where and what changed.
- It posts the card in #server-log without pinging anyone.
- Deletes and edits in the log channel itself are skipped, so the log doesn't log itself.
Every entry in the log is a server event, which needs a bot that stays connected to Discord, on the Paid plan.
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.
How adding it works
Press Add to my server and Buildcord asks you to sign up or sign in. It then makes a new bot from this template, with every flow already drawn. Paste your Discord bot token, add the bot to your server with the invite link and deploy. Nothing is final: the template is an ordinary bot you can open and change.
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.