feat: add per-event colour coding to mod and activity logs
Node.js CI / CI (pull_request) Successful in 32s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m1s

Co-Authored-By: Hikari <hikari@nhcarrigan.com>
This commit is contained in:
2026-03-31 17:30:34 -07:00
committed by Naomi Carrigan
parent 088f74e559
commit 8dd66d88c1
20 changed files with 106 additions and 20 deletions
+7 -1
View File
@@ -14,7 +14,11 @@ import {
} from "discord.js";
import { logModerationAction } from "../modules/logModAction.js";
import { sendSanction } from "../modules/sendSanction.js";
import { errorReply, sanctionDmMessage, successReply } from "../utils/components.js";
import {
errorReply,
sanctionDmMessage,
successReply,
} from "../utils/components.js";
import { logger } from "../utils/logger.js";
import type { Command } from "../interfaces/command.js";
@@ -100,6 +104,7 @@ const kickCommand: Command = {
await target.send(
sanctionDmMessage(
`You have been kicked from **${interaction.guild?.name ?? "the server"}**.\n**Reason:** ${reason}`,
"kick",
),
);
} catch {
@@ -127,6 +132,7 @@ const kickCommand: Command = {
await logModerationAction(interaction.client, {
action: "Member Kicked",
colour: "kick",
emoji: "👢",
moderatorTag: interaction.user.username,
reason: reason,