Don't rely on metadata for appeals
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
export async function onRequestPost(context: RequestContext) {
|
||||
const { metadata, value } = context.data.appeal;
|
||||
const { appeal } = context.data;
|
||||
const body = new FormData();
|
||||
body.append("from", "noreply@mail.carcrushers.cc");
|
||||
body.append("to", value.email);
|
||||
body.append("to", appeal.email);
|
||||
body.append("subject", "Appeal Denied");
|
||||
body.append("template", "appeal_denied");
|
||||
body.append("v:note", context.data.body.feedback || "No note provided.");
|
||||
@ -36,7 +36,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
{
|
||||
title: "Appeal Denied",
|
||||
color: 0xff0000,
|
||||
description: `Appeal from user ${metadata.tag} (${metadata.id}) was denied.`,
|
||||
description: `Appeal from user ${appeal.username}#${appeal.discriminator} (${appeal.id}) was denied.`,
|
||||
fields: [
|
||||
{
|
||||
name: "Moderator",
|
||||
|
Reference in New Issue
Block a user