mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 10:31:26 +03:00
fix: allow staff to get transcripts of other members (closes #400)
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user