From 40b5c9e48eb30d780612b9c7a64edd7e63c27d4a Mon Sep 17 00:00:00 2001
From: zay
Date: Fri, 29 Dec 2023 17:54:33 -0500
Subject: [PATCH] style: code review
Suggestions that were not automatically resolvable.
---
dashboard/src/components/docs/Moderation.vue | 51 +++++++++++---------
1 file changed, 27 insertions(+), 24 deletions(-)
diff --git a/dashboard/src/components/docs/Moderation.vue b/dashboard/src/components/docs/Moderation.vue
index aa0d58db..ff2151e6 100644
--- a/dashboard/src/components/docs/Moderation.vue
+++ b/dashboard/src/components/docs/Moderation.vue
@@ -13,7 +13,8 @@
plugin. To best use this guide, read the default configuration of the
Mod actions plugin alongside this. This plugin does
not cover muting members, please see the
- Mutes plugin for that.
+ Mutes
+ plugin for that.
Please ensure you understand how
@@ -21,7 +22,7 @@
configuration and
plugin
permissions work before reading this guide since
- the configs defined here rely on your these concepts.
+ the configs defined here rely on these concepts.
@@ -78,31 +79,33 @@
Summary Example
- Employing what we have learnt so far, we can write a configuration that:
-
- - Alerts members of their warns in a channel, instead of DMs.
- - Alerts members of kicks and bans in their DMs.
- - Makes use of multi-line strings to prepare a tidy message.
- - Includes the remaining ban time if a ban was temporary.
-
-
- plugins:
- mod_actions:
- config:
- dm_on_warn: false
- message_on_warn: true
- message_channel: "PRETEND-CHANNEL-ID"
+
+ Employing what we have learnt so far, we can write a configuration that:
+
+ - Alerts members of their warns in a channel, instead of DMs.
+ - Alerts members of kicks and bans in their DMs.
+ - Makes use of multi-line strings to prepare a tidy message.
+ - Includes the remaining ban time if a ban was temporary.
+
+
+ plugins:
+ mod_actions:
+ config:
+ dm_on_warn: false
+ message_on_warn: true
+ message_channel: "PRETEND-CHANNEL-ID"
- dm_on_kick: true
+ dm_on_kick: true
- dm_on_ban: true
- tempban_message: |-
- Dear {user.username},
+ dm_on_ban: true
+ tempban_message: |-
+ Dear {user.username},
- As a result of {reason}, you have been banned from {guildName}
- for {banTime}. We welcome you back provided you do not do this
- again.
-
+ As a result of {reason}, you have been banned from {guildName}
+ for {banTime}. We welcome you back provided you do not do this
+ again.
+
+
Alerts