> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/moderation/discord-logs.md).

# Discord Logs

Log actions from your server in a log channel

## Setup

You can setup the system with the `/setup discord-logs`command.

| Command Option Name | Function                                                                                                    |
| ------------------- | ----------------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action you would like to take. To enable the logs, select 'Enable logs' |
| your-log-channel    | In this option you can select a channel where you want to get logs from the bot                             |

### Logged actions

The following actions are logged with the logs:

* Edited messages
* Deleted messages
* Channel deletions
* Channel permission update
* Role deletions
* Role added to members
* Role removed from members
* Kicked users
* Banned users
* User unbans
* Server unboosts
* Added bots
* AutoMod rule deletion
* Emoji deletion
