aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--PRIVACY.md25
-rw-r--r--src/srcom/slash_commands.tsx20
2 files changed, 24 insertions, 21 deletions
diff --git a/PRIVACY.md b/PRIVACY.md
index e3a6705..c9a4e54 100644
--- a/PRIVACY.md
+++ b/PRIVACY.md
@@ -1,22 +1,31 @@
# Privacy Policy
-speedrun.bot values it's users privacy and as such it is dedicated to using as little identifiable information as it can.
+speedrun.bot values it's users privacy and as such it is dedicated to using as
+little identifiable information as it can.
## Third Party Services
-speedrun.bot may interact with some essential third party services to it's user experience.
-These are:
+speedrun.bot may interact with some essential third party services to it's user
+experience. These are:
+
- Speedrun.com
- Discord.com
- Deno.com
-Speedrun.com is used by most commands as that is where the bot gets it's data from. All the interaction between speedrun.com and speedrun.bot will never share any of the user's personal data. Only the information the user provides, such as command arguments, will be used.
+Speedrun.com is used by most commands as that is where the bot gets it's data
+from. All the interaction between speedrun.com and speedrun.bot will never share
+any of the user's personal data. Only the information the user provides, such as
+command arguments, will be used.
-Discord.com is used to interact with discord users. No discord user data will be permanently stored. A user's data may be used temporarily, such as keeping track of your command, but it will be deleted as soon as it is deemed unnecessary.
+Discord.com is used to interact with discord users. No discord user data will be
+permanently stored. A user's data may be used temporarily, such as keeping track
+of your command, but it will be deleted as soon as it is deemed unnecessary.
-Deno.com is hosting speedrun.bot. It also stores the logs and keeps a track of how often the bot is used and at what times. This data cannot be tracked back to any specific user or discord guild.
+Deno.com is hosting speedrun.bot. It also stores the logs and keeps a track of
+how often the bot is used and at what times. This data cannot be tracked back to
+any specific user or discord guild.
# Concerns
-If you have any concerns about speedrun.bot or how it may be using your data, please reach out to lucafulger@gmail.com or AnInternetTroll#4871 on discord.
-
+If you have any concerns about speedrun.bot or how it may be using your data,
+please reach out to lucafulger@gmail.com or AnInternetTroll#4871 on discord.
diff --git a/src/srcom/slash_commands.tsx b/src/srcom/slash_commands.tsx
index 3586a81..4aabda3 100644
--- a/src/srcom/slash_commands.tsx
+++ b/src/srcom/slash_commands.tsx
@@ -430,23 +430,17 @@ const runningTasks = new Map<
>();
export class SpeedrunCom extends ApplicationCommandsModule {
- static async handleCancelButton(i: MessageComponentInteraction) {
+ static async handleCancelButton(i: MessageComponentInteraction): Promise<void> {
const task = runningTasks.get(i.customID)!;
if (!task) {
- try {
- await i.respond({
- content: "Sorry, but I couldn't find the running task to cancel.",
- ephemeral: true,
- });
- } catch {
- await i.editResponse({
- content: "Sorry, but I couldn't find the running task to cancel.",
- ephemeral: true,
- });
- }
+ await i.respond({
+ content: "Sorry, but I couldn't find the running task to cancel.",
+ ephemeral: true,
+ });
+ return;
}
if (task.user !== i.user.id) {
- i.send({
+ await i.send({
content: "You are not allowed to cancel this.",
ephemeral: true,
});