# Moderation Action Logging

### **Permissions**

Yzbot must have the `Embed Links`, `View Channel` and `Send Messages` permissions in the channel in which you wish the actions to be logged. Otherwise, it will not be able to log moderation actions whether the channel has been set or not.

### **Managing the mod log channel**

In order to log moderation actions, you need to set a channel to log them in first. To do this, simply type `;modlog set <#channel>`, replacing <#channel> with the mention of the channel that you want yzbot to perform mod logging in. If you want to change the mod log, just type the same command but with a different channel mention this time.

<div align="left"><img src="https://2214197333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KHeDkm4oqokce8Df5%2F-M4KatQDRTrJiR879Zp_%2F-M4KtCB0GASyvHb34itU%2Fimage.png?alt=media&#x26;token=b2a5816b-a5d9-4754-bbb2-a9e3e810a693" alt=""></div>

If you want to stop yzbot logging all moderation actions, just type `;modlog remove` and the mod log channel setting for the server will be removed.

<div align="left"><img src="https://2214197333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KHeDkm4oqokce8Df5%2F-M4KatQDRTrJiR879Zp_%2F-M4LAfaCgL_HTis0jpJV%2Fimage.png?alt=media&#x26;token=69d1a516-77e9-4d2b-918d-7504e8dd96b2" alt=""></div>

### Managing individual mod logs

All moderation actions that yzbot logs have their logs enabled by default. To disable yzbot logging individual actions, simply type `;modlog disable <log>` and replace the log with any of the logs below:

ban, mute, kick, hackban, softban, warn, unmute, unban, prune

<div align="left"><img src="https://2214197333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KHeDkm4oqokce8Df5%2F-M4KatQDRTrJiR879Zp_%2F-M4LBh6dpgy8m7pLe52P%2Fimage.png?alt=media&#x26;token=30efd52a-b277-41f7-8032-ac13efcf2ebe" alt=""></div>

If you want to allow yzbot to log a specific moderation action again, type `;modlog enable <log>` and moderation actions of that type will be logged again.

<div align="left"><img src="https://2214197333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KHeDkm4oqokce8Df5%2F-M4NuKBuriqQqIkmR8Qd%2F-M4O1RtpbnbNeYuKYfKB%2Fimage.png?alt=media&#x26;token=e6410fb0-4491-43a6-b83b-9361a3e852a9" alt=""></div>

If you want to check which moderation logs are disabled, type `;modlog listdisabled` and the bot will tell you the disabled logs, if any, otherwise it will tell you there's none.

<div align="left"><img src="https://2214197333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KHeDkm4oqokce8Df5%2F-M4NuKBuriqQqIkmR8Qd%2F-M4O1ruLvlZRhs-YLpMR%2Fimage.png?alt=media&#x26;token=50ac0fc3-08ba-443d-b0f5-604dc893241a" alt=""></div>
