{{define "template_helper_mod_author"}}{{"{{"}}.Author.(Username/ID/Discriminator){{"}}"}} - The author of the ban/kick{{end}} {{define "cp_moderation"}} {{template "cp_head" .}} {{template "cp_alerts" .}}
{{template "moderation_general" .}}
{{template "moderation_mute" .}}
{{template "moderation_kick" .}}
{{template "moderation_ban" .}}
{{template "moderation_warn" .}}
{{template "cp_footer" .}} {{end}} {{define "moderation_general"}}

A set of moderation tools and commands to help you run a server.

Commands for performing moderation actions such as kick and ban, as well as mutes, timed bans, warning, mass deleting messages and so on.
It is highly recommended to couple the moderation actions with the message logs, this was whenever your mods decide to perform actions on someone, a message log of the channel they ran the command in will be recorded and added to the mod log.

The moderation actions coupled with the message logs has been one of the most useful tools for me personally when running servers with thousands of members.

More documentation







{{end}} {{define "moderation_mute"}}

Muting users allows you to punish users by removing their ability to talk.

How YAGPDB Mutes users is it gives them a role which has the "Send messages" permission removed on all channels

The simplest way to use it is to have the bot manage the mute role (see below), but for more advanced usages you can blacklist channels and fully manage it on your own.


For simple usage you can have the bot manage the role, look below for more info.








Available template data:
{{template "template_helper_user"}} - The user being muted
{{"{{.Reason}}"}} - The reason specified in the mute
{{template "template_helper_mod_author"}}
{{"{{.Duration}}"}} - The duration
{{"{{.HumanDuration}}"}} - The duration in a human friendly format (1 hour and 3 minutes for example)


Available template data:
{{template "template_helper_user"}} - The user being unmuted
{{"{{.Reason}}"}} - The reason specified in the unmute
{{template "template_helper_mod_author"}}

{{end}} {{define "moderation_kick"}}

Allows you to kick members through a command, there's several benefits using this over just kicking them in discord:





Available template data:
{{template "template_helper_user"}} - The user being banned/kicked
{{"{{.Reason}}"}} - The reason specified in the ban/kick
{{template "template_helper_mod_author"}}

{{end}} {{define "moderation_ban"}}

Allows you to ban users through the commands ban @user somereason and banid 1034924032 somereason, it has the following advantages over just banning them through discord:

Note that the bans themselves are on discord, to unban someone you need to go into your banlist on discord and unban them.




Available template data:
{{template "template_helper_user"}} - The user being banned/kicked
{{"{{.Reason}}"}} - The reason specified in the ban/kick
{{template "template_helper_mod_author"}}
{{"{{.Duration}}"}} - The duration
{{"{{.HumanDuration}}"}} - The duration in a human friendly format (1 hour and 3 minutes for example)

{{end}} {{define "moderation_warn"}}

Allows you to put warnings on users that shows up in the modlog. Warnings of a user can be accessed through warnings @user




Available template data:
{{template "template_helper_user"}} - The user being warned
{{"{{.Reason}}"}} - The reason specified in the warning
{{template "template_helper_mod_author"}}

Delete all warnings
{{end}}