generated from nhcarrigan/template
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user