generated from nhcarrigan/template
feat: add per-event colour coding to mod and activity logs
Co-Authored-By: Hikari <hikari@nhcarrigan.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user