fix: allow staff to get transcripts of other members (closes #400)

This commit is contained in:
Isaac
2023-05-24 22:04:19 +01:00
parent afa0123d22
commit a44539914e
3 changed files with 15 additions and 4 deletions

View File

@@ -24,6 +24,11 @@ module.exports = class TranscriptSlashCommand extends SlashCommand {
required: true,
type: ApplicationCommandOptionType.String,
},
{
name: 'member',
required: false,
type: ApplicationCommandOptionType.User,
},
].map(option => {
option.descriptionLocalizations = client.i18n.getAllMessages(`commands.slash.${name}.options.${option.name}.description`);
option.description = option.descriptionLocalizations['en-GB'];
@@ -143,4 +148,4 @@ module.exports = class TranscriptSlashCommand extends SlashCommand {
await interaction.editReply({ files: [attachment] });
// TODO: add portal link
}
};
};