mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 10:31:26 +03:00
fix: use environment variables
This commit is contained in:
@@ -122,7 +122,7 @@ module.exports = class TicketsSlashCommand extends SlashCommand {
|
||||
.setTitle(getMessage(`commands.slash.tickets.response.title.${ownOrOther}`, { displayName: member.displayName }))
|
||||
.setFields(fields);
|
||||
|
||||
if (settings.archive && !client.config.overrides.disableArchives) {
|
||||
if (settings.archive && process.env.OVERRIDE_ARCHIVE !== 'false') {
|
||||
const transcriptCommand = client.application.commands.cache.find(c => c.name === 'transcript');
|
||||
embed.setDescription(getMessage('commands.slash.tickets.response.description', { transcript: `</${transcriptCommand.name}:${transcriptCommand.id}>` }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user