feat: include resource links in sanction DMs

Adds appeal form, sanction logs, contact page, and community rejoin
link to all sanction DM notifications, separated from the sanction
details using a Components v2 separator.
This commit is contained in:
2026-03-31 16:50:27 -07:00
committed by Naomi Carrigan
parent 01d6da8a33
commit 088f74e559
6 changed files with 41 additions and 10 deletions
+4 -2
View File
@@ -14,7 +14,7 @@ import {
} from "discord.js";
import { logModerationAction } from "../modules/logModAction.js";
import { sendSanction } from "../modules/sendSanction.js";
import { errorReply, 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";
@@ -98,7 +98,9 @@ const kickCommand: Command = {
try {
await target.send(
`You have been kicked from **${interaction.guild?.name ?? "the server"}**.\n**Reason:** ${reason}`,
sanctionDmMessage(
`You have been kicked from **${interaction.guild?.name ?? "the server"}**.\n**Reason:** ${reason}`,
),
);
} catch {
// DMs may be closed; continue without failing the command.