From a7ecac486bb62e2364ef1b2ccdd9880f9af23f96 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Tue, 21 May 2024 04:22:26 -0400 Subject: [PATCH] add guild and user id logging to report command to facilitate data deletion. --- PRIVACY.md | 2 +- src/commands/report.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PRIVACY.md b/PRIVACY.md index 62adf06..ad1418f 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -11,7 +11,7 @@ _The Bot_ does not read any user messages sent in the past, but does read its ow * Messages that do not begin with _The Bot_'s command prefix are not saved or stored anywhere. Messages that do not begin with _The Bot_'s command prefix that are sent outside of a designated Event Channel are ignored and not processed. * Slash Commands sent to _The Bot_ do not automatically log user data, and most commands to not log any data. The commands that log data are the report command (in Discord, this command is known as `/report [message]`), the Event Channel setup command (known as `/setup`), and the Create New Event command (known as `/create-event` or the `Create New Event` button). - * The report command only stores the text placed within the message that is directly after the command (herein referred to as _The Report Text_). This command is entirely optional, meaning users never need to run this command under normal usage of _The Bot_. This command is only intended to be used to report roll commands that did not output what was expected. This command will accept any value for _The Report Text_, thus it is up to the user to remove any sensitive information before sending the command. _The Report Text_ is stored in a private Discord Guild in a channel that only _The Developer_ can see. _The Report Text_ is solely used to improve _The Bot_, either by providing a feature suggestions or alerting _The Developer_ to bugs that need patched. + * The report command stores the Discord Guild ID, Discord User ID, and the text placed within the message that is directly after the command (herein referred to as _The Report Text_). This command is entirely optional, meaning users never need to run this command under normal usage of _The Bot_. This command is only intended to be used to report roll commands that did not output what was expected. This command will accept any value for _The Report Text_, thus it is up to the user to remove any sensitive information before sending the command. _The Report Text_ is stored in a private Discord Guild in a channel that only _The Developer_ can see. _The Report Text_ is solely used to improve _The Bot_, either by providing a feature suggestions or alerting _The Developer_ to bugs that need patched. The Discord Guild ID and Discord User ID are only used to determine which reports need to be deleted as detailed in the _Deleting Your Data_ section below. * The Event Channel setup command only stores Discord IDs. The setup command will always store the Discord Channel ID and Discord Guild ID from where it was run. * If the Event Channel setup command was run with the `with-manager-role` option, the submitted Discord Role ID and Discord Channel ID for the desired Manager Role and Log Channel will also be stored. * The Create New Event command stores the following data for every event that is created: diff --git a/src/commands/report.ts b/src/commands/report.ts index 99c628d..4e22d7f 100644 --- a/src/commands/report.ts +++ b/src/commands/report.ts @@ -31,6 +31,9 @@ const execute = (bot: Bot, interaction: Interaction) => { color: infoColor2, title: 'USER REPORT:', description: interaction.data.options[0].value as string, + footer: { + text: `${interaction.guildId}-${interaction.user.id}`, + }, }], }).catch((e: Error) => utils.commonLoggers.interactionSendError('report.ts:28', interaction, e)); bot.helpers.sendInteractionResponse(