diff options
Diffstat (limited to 'src/server.ts')
| -rw-r--r-- | src/server.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/server.ts b/src/server.ts index 990c67c..a2618fe 100644 --- a/src/server.ts +++ b/src/server.ts @@ -447,8 +447,7 @@ router.post("/", async (request: Request, environment: Environment) => { case APPEAL_COMMAND.name.toLowerCase(): { try { - const appealMessage = interaction.data.options?.[0] - ?.value as string; + const appealMessage = interaction.data.options?.[0]?.value as string; if (!appealMessage) return new JSONResponse({ @@ -476,16 +475,14 @@ router.post("/", async (request: Request, environment: Environment) => { Date.now(), isDM, ); - const success = await sendAppealToChannel( - environment, - appealEmbed, - ); + const success = await sendAppealToChannel(environment, appealEmbed); if (success) { return new JSONResponse({ type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, data: { - content: "✅ Your appeal has been submitted successfully! A moderator will follow up with you soon.", + content: + "✅ Your appeal has been submitted successfully! A moderator will follow up with you soon.", flags: 64, }, }); |