Reusing old code go brr
This commit is contained in:
parent
3fda780cf3
commit
aa0569d5f0
2
index.js
2
index.js
|
@ -1179,7 +1179,7 @@ dcClient.on('interactionCreate', async interaction => {
|
||||||
const buffer = Buffer.from(outputStream, 'utf-8');
|
const buffer = Buffer.from(outputStream, 'utf-8');
|
||||||
const attachment = {
|
const attachment = {
|
||||||
name: "output.txt",
|
name: "output.txt",
|
||||||
content: buffer
|
attachment: buffer
|
||||||
}
|
}
|
||||||
msgJson.files = [attachment];
|
msgJson.files = [attachment];
|
||||||
msgJson.content = `Ran command \`${cmd}\`\nOutput too long, sending as a file`
|
msgJson.content = `Ran command \`${cmd}\`\nOutput too long, sending as a file`
|
||||||
|
|
Loading…
Reference in a new issue