{{define "template_helper_mod_author"}}{{"{{"}}.Author.(Username/ID/Discriminator){{"}}"}}
- The author of
the ban/kick{{end}}
{{define "cp_moderation"}}
{{template "cp_head" .}}
Moderation tools
This cannot be undone.
A set of moderation tools and commands to help you run a server.
Commands for performing moderation actions such as kicks and bans, as well as mutes, timed bans, warnings, mass
deleting messages and so on.
It is highly recommended to couple the moderation actions with the message logs, this means that whenever your mods
decide to perform an action 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 have been one of the most useful tools for me personally when running servers with thousands of members.
(mention or prefix) report @user some reason
Everyone can use this.
Report will upload a log of the last 100 messages in the channel and send a message about it in the
report channel.
For the author to show up when this is used you need to give the bot "audit log" permissions.
giverole/addrole and removerole
commands" .ModConfig.GiveRoleCmdEnabled}}
People with manage roles permissions plus extra roles set below can use this.
giverole/addrole and removerole
to modlog?" .ModConfig.GiveRoleCmdModlog}}
(mention or prefix) clean NUM {@user <- optional}
Manage Messages permission is required for this command.
Clean command can delete up to a 1000 messages back in history (max 100 messages at a time).
See -help clean
for more advanced usage.
For the author and reason to show up when this is used you need to give the bot "audit log" permissions.
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.
(mention or prefix) mute/unmute @user 10 some reason
Only users with kick permission can use this (or with roles specified below).
For simple usage you can have the bot manage the role, look below for more info.
You still need to create and assign a mute role above.
{{checkbox "MuteDisallowReactionAdd" "disallow-reaction" "Disallow Adding Reactions when muted" .ModConfig.MuteDisallowReactionAdd}}
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"}}
Allows you to kick members through a command, there's several benefits using this over just kicking them in Discord:
(mention or prefix) kick @user some reason
Only users with kick permission can use this (or with roles specified below).
Same as ban command, but kicks instead.
reason
optional" .ModConfig.KickReasonOptional}}
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"}}
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.
ban @user some reason
Only users with ban permission can use this. (or with roles specified below)
The ban command will ban a user as well as sending a message that the user was banned in the
action channel.
reason
optional" .ModConfig.BanReasonOptional}}
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)
Allows you to put warnings on users that shows up in the modlog. Warnings of a user can be accessed through
warnings @user
Only users with manage messages permission can use this (or with roles specified below).
warn @user some reason
Creates a new warning for the user
warnings @user
Displays a list of a specified user's warnings
Available template data:
{{template "template_helper_user"}} - The user being warned
{{"{{.Reason}}"}}
- The reason specified in the warning
{{template "template_helper_mod_author"}}