|
|
|
|
@ -86,8 +86,9 @@ const callback = async (interaction: CommandInteraction | ButtonInteraction, mem
|
|
|
|
|
const config = await client.database.guilds.read(interaction.guild.id);
|
|
|
|
|
try {
|
|
|
|
|
if (notify) {
|
|
|
|
|
let formattedReason: string | null = null;
|
|
|
|
|
if (reason) {
|
|
|
|
|
reason = reason
|
|
|
|
|
formattedReason = reason
|
|
|
|
|
.split("\n")
|
|
|
|
|
.map((line) => "> " + line)
|
|
|
|
|
.join("\n");
|
|
|
|
|
@ -102,7 +103,7 @@ const callback = async (interaction: CommandInteraction | ButtonInteraction, mem
|
|
|
|
|
.setTitle("Banned")
|
|
|
|
|
.setDescription(
|
|
|
|
|
`You have been banned from ${interaction.guild.name}` +
|
|
|
|
|
(reason ? ` for:\n${reason}` : ".\n*No reason was provided.*")
|
|
|
|
|
(formattedReason ? ` for:\n${formattedReason}` : ".\n*No reason was provided.*")
|
|
|
|
|
)
|
|
|
|
|
.setStatus("Danger")
|
|
|
|
|
],
|
|
|
|
|
|