summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-24 02:43:01 -0700
committerFuwn <[email protected]>2025-09-24 02:43:01 -0700
commitfdad4c376c1f4270918cdd28ed910106cf9bdcd3 (patch)
treef5dc808dc429dc683709cd40ef01c598d759eacb /src
parentfeat: Restrict complain and appeal commands to DMs (diff)
downloadumabotdiscord-fdad4c376c1f4270918cdd28ed910106cf9bdcd3.tar.xz
umabotdiscord-fdad4c376c1f4270918cdd28ed910106cf9bdcd3.zip
style: Lint
Diffstat (limited to 'src')
-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,
},
});