Add ability to use \n in /say

This commit is contained in:
Ninjdai1 2023-09-24 23:06:40 +02:00
parent efedda59f1
commit 2ce4a5b10c

View File

@ -19,7 +19,7 @@ export default {
.setRequired(false)),
async execute(interaction) {
let msgtosend = interaction.options.getString('message');
msgtosend = msgtosend.substring(0,2000);
msgtosend = msgtosend.substring(0,2000).replace(/\\n/g, "\n");
let channeltosend = interaction.options.getChannel('destination');
if (!channeltosend) {