summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/discord/embeds.ts4
-rw-r--r--src/server.ts11
2 files changed, 5 insertions, 10 deletions
diff --git a/src/discord/embeds.ts b/src/discord/embeds.ts
index 6873617..3f7c344 100644
--- a/src/discord/embeds.ts
+++ b/src/discord/embeds.ts
@@ -175,9 +175,7 @@ export const createAppealEmbed = (
}
: undefined,
footer: {
- text: isDM
- ? "Appeal submitted via DM"
- : "Appeal submitted from server",
+ text: isDM ? "Appeal submitted via DM" : "Appeal submitted from server",
},
};
};
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,
},
});