From 56cb6ad390840bd95e4f4d9f7816d5f57a841376 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sun, 27 Feb 2022 08:50:58 -0500 Subject: [PATCH 1/3] Include ephemeral argument Fix #584 --- src/commands/setAuto.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/setAuto.ts b/src/commands/setAuto.ts index 6030a39a..32586fdb 100644 --- a/src/commands/setAuto.ts +++ b/src/commands/setAuto.ts @@ -127,7 +127,8 @@ export default class SetAuto extends Command { await interaction.followUp({ content: "I cannot send you a screening, possibly due to DMs being disabled from server members. Therefore, you will be set to email-only screenings. In order to disable email-only mode, please run `/toggle_email_only` after making sure your DMs are open again.", - embeds: interaction.client.guideData.get("post_set_auto")!, + embeds: interaction.client.guideData.get("post_set_auto",)!, + ephemeral }); autoUserObj.emailOnly = true; await autoUserObj.save(); From 2a81b64eebd16bbe6fcd20b1887681e61c9fc530 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sun, 27 Feb 2022 08:52:52 -0500 Subject: [PATCH 2/3] Put in correct command Fix #583 --- src/commands/setAuto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/setAuto.ts b/src/commands/setAuto.ts index 32586fdb..bde39ab1 100644 --- a/src/commands/setAuto.ts +++ b/src/commands/setAuto.ts @@ -126,7 +126,7 @@ export default class SetAuto extends Command { ) { await interaction.followUp({ content: - "I cannot send you a screening, possibly due to DMs being disabled from server members. Therefore, you will be set to email-only screenings. In order to disable email-only mode, please run `/toggle_email_only` after making sure your DMs are open again.", + "I cannot send you a screening, possibly due to DMs being disabled from server members. Therefore, you will be set to email-only screenings. In order to disable email-only mode, please run `/set` after making sure your DMs are open again.", embeds: interaction.client.guideData.get("post_set_auto",)!, ephemeral }); From 04717878e404d16c30e732779e6e9799fce12e59 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sun, 27 Feb 2022 08:53:39 -0500 Subject: [PATCH 3/3] Lint --- src/commands/setAuto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/setAuto.ts b/src/commands/setAuto.ts index bde39ab1..0b3dc2a7 100644 --- a/src/commands/setAuto.ts +++ b/src/commands/setAuto.ts @@ -127,8 +127,8 @@ export default class SetAuto extends Command { await interaction.followUp({ content: "I cannot send you a screening, possibly due to DMs being disabled from server members. Therefore, you will be set to email-only screenings. In order to disable email-only mode, please run `/set` after making sure your DMs are open again.", - embeds: interaction.client.guideData.get("post_set_auto",)!, - ephemeral + embeds: interaction.client.guideData.get("post_set_auto")!, + ephemeral, }); autoUserObj.emailOnly = true; await autoUserObj.save();