diff --git a/index.js b/index.js index 9f85ba0..93772bb 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,8 @@ client.on(Events.MessageCreate, async interaction => { sessions[id].stdout.on('data', (chunk) => { if (chunk.toString().length > 1) { let str = chunk.toString(); - str = str.replaceAll(id,`<@${id}>`) - interaction.channel.send(str.toString()); + str = str.replaceAll(id,`<@${id}>`); + interaction.channel.send(str); } }); sessions[id].on('close', () => {