Event log channels (/setlogs)
The event log channels record what happens in Discord: a message deleted, a member banned from the member list, a role given by hand, someone joining a voice channel. Each type of event has its own channel, and you choose them with /setlogs. You can send every type to the same channel, or give each one its own.
/setlogs type [channel]
Needs the Administrator permission (or a command rule on setlogs). Also available as a prefix command (+setlogs, +logs, +setlog); +autologs is a shortcut for Setup all channels.
type |
What it does |
|---|---|
| Setup all channels | Without channel: creates the missing log channels in a private LOGS category. With channel: sends every type to that one channel. |
| Delete all settings | Forgets every event log channel (the channels themselves are not deleted). |
| Messages Logs, Moderation Logs, Roles Logs, Voice Logs, Boost Logs, Channel Logs | The Discord events described on this page. |
| AntiSpam Logs, Confession Logs, Economy Logs, Ticket Logs | A module's own logs: see Module log channels. |
For one type, channel is required: without it iHorizon answers "No Channel Logs Set". Choosing the channel that is already set answers "The channel #β¦ is already set!".
What iHorizon needs
- In each log channel: View Channel, Send Messages and Embed Links. If one is missing, iHorizon tells you which instead of saving a channel it can't post in: "β | I can't post logs in #mod-logs, I'm missing these permissions there:
EmbedLinks." - To create the channels itself (Setup all channels without
channel): Manage Channels and Read Message History on the server too. - For the Moderation, Roles and Channel logs: View Audit Log and Manage Server. These logs read Discord's audit log to know who did it; without these permissions they are skipped.
iHorizon doesn't need to be an administrator.
Setup all channels
iHorizon looks at the channels already saved. A saved channel that still exists and where iHorizon can post is kept.
A deleted channel, or one where iHorizon lost its permissions, is replaced.
It finds a category. The category of the first kept channel, if iHorizon can create channels there. Otherwise it creates a new LOGS category, hidden from @everyone.
New channels copy the category's permissions, plus an entry that lets iHorizon post.
It creates the missing channels, one per type, named after the type in the server's language: voice-logs, moderation-logs, messages-logs, boost-logs, roles-logs, ticket-logs, antispam-logs, channel-logs, confession-logs, economy-logs.
If nothing is missing: "All the log channels are already configured!"
So running it again is safe: it only fills the gaps. Each new channel starts with a confirmation:
The first message of each log channel.
Ticket Logs is the ticket log channel
Ticket Logs (and Setup all channels) set the same channel as /ticket log-channel. Delete all settings doesn't forget it: change it with /ticket log-channel, or in the dashboard's Tickets module.
Messages
Deleted messages: who wrote it, in which channel, and what it said. The message's files are downloaded and posted again with the log, because Discord deletes the original files with the message: images show in the card, other files are attached under it. If the message had embeds (a bot's message, a link preview), they can't fit inside a card: iHorizon posts them as-is in a second message right after it.
# Channel : #general
A deleted message with an image and a link preview: the card, then its embed.
Edited messages: the author, the channel, a link to the message, and the text before and after (each version is cut after about 1,800 characters).
# Channel : #general
π Message : Go to the message
see you at 8
see you at 9
What is not logged:
- iHorizon's own messages (deleted or edited), and edits made by bots.
- Edits that only change an embed or a file: only the text is compared.
- Messages iHorizon doesn't have in memory: a message posted before the bot last restarted can be deleted or edited without a log.
Moderation
Bans, unbans and kicks made directly in Discord: from the member list, by another bot, or by a moderator's own client. The card says who did it, to whom, and the reason written in the audit log ("No reason found" if there was none).
Spam links in #general
| Event | Card | Accent |
|---|---|---|
| Ban | Member banned: "@Tom banned @Raider" | red |
| Kick | Member kicked: "@Tom kicked @Raider" | red |
| Unban | Member unbanned: "@Tom revoked the ban on raider_99" | green |
iHorizon's own moderation is in ihorizon-logs
When a moderator bans with /mod ban (or from the dashboard), iHorizon performs the ban, and these logs skip what iHorizon did itself. That ban is logged in the ihorizon-logs channel instead, with the moderator who ran the command. The same goes for kicks and unbans.
A member who leaves on their own isn't logged here: only a kick written in the audit log is. The warnings can also end up in this channel.
Roles
A role given to or removed from a member, and who did it. One card per change, with a line per direction: π€ removed, π₯ added. The accent is green for an addition, red for a removal, yellow when both happened at once.
π₯ @Aya added the @Moderator role to milo
A promotion: one role removed, one added, in the same edit.
Roles iHorizon gives or removes itself are not logged here: join roles, reaction roles, /mod temprole, level rewards⦠Roles given by other bots are.
Voice
| Event | Card text | Accent |
|---|---|---|
| Joins a voice channel | π₯ @Milo joined the #Gaming channel | green |
| Leaves a voice channel | π€ @Milo left the #Gaming channel | red |
| Deafens / undeafens themselves | @Milo deafened themselves in the #Gaming channel | blurple |
| Mutes / unmutes themselves | @Milo muted themselves in the #Gaming channel | blurple |
Each card is titled Voice activity, with the member's avatar. Moving from one voice channel to another, and a moderator muting or deafening someone, are not logged. iHorizon's own voice activity (music, 24/7) is ignored.
Boosts
New boost when a member boosts the server, Boost removed when the boost ends, with the server's boost count: "@Milo just boosted the server! (14 total boosts)". The accent is Nitro pink.
Only boosts seen live are announced (a boost older than ten minutes isn't announced as new), and the server must have Discord's booster role (Server Booster).
Channel
A channel renamed or whose permissions change, who did it, and what changed:
π« Name: announcements
β’ β SendMessages not allowed for @everyone
π‘ Added permissions for @Event Team:
β’ β SendMessages
Permission names are Discord's (SendMessages, ViewChannelβ¦). Not logged: channels created or deleted, a channel moved, a permission entry removed entirely, and changes made by iHorizon itself (/mod lock is in ihorizon-logs).
Created or deleted channels
Turn on Protection: its Channel creation and Channel deletion rules undo them and sanction whoever did it.