fix use of single quote

This commit is contained in:
Supositware 2024-08-28 00:24:16 +02:00
parent d604f0ad8e
commit 4f84a09a7e

View file

@ -30,7 +30,7 @@ export default {
data: ${JSON.stringify(client.commands.get(args.commandname).data)}, data: ${JSON.stringify(client.commands.get(args.commandname).data)},
category: '${client.commands.get(args.commandname).category}', category: '${client.commands.get(args.commandname).category}',
async execute(interaction) { async execute(interaction) {
return interaction.reply('${args.placeholder}'); return interaction.reply('${args.placeholder.replace(/'/g, '\\\'')}');
}, },
}; };