mirror of
https://github.com/Art-Portal/April.git
synced 2024-12-26 11:24:16 +01:00
Add ability to use \n in /say
This commit is contained in:
parent
efedda59f1
commit
2ce4a5b10c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user