chernogolovka🐦
chernogolovka🐦
DIAdiscord.js - Imagine an app
Created by chernogolovka🐦 on 12/5/2023 in #djs-questions
The bot is silent and does not send me a transcript
Code: (This is my first time working with discord.js, don’t judge me)
$djsEval[(async () => {
const discordTranscripts = require("discord-html-transcripts");
const userID = '602842619797569587';
const channel = client.channels.cache.get("$channelID");
const attachment = await discordTranscripts.createTranscript(channel, {
filename: "transcript.html",
saveImages: true,
poweredBy: false,
number: message.content
});
client.users.cashe.get(userID).send({
files: [attachment]
});
})();false]
$djsEval[(async () => {
const discordTranscripts = require("discord-html-transcripts");
const userID = '602842619797569587';
const channel = client.channels.cache.get("$channelID");
const attachment = await discordTranscripts.createTranscript(channel, {
filename: "transcript.html",
saveImages: true,
poweredBy: false,
number: message.content
});
client.users.cashe.get(userID).send({
files: [attachment]
});
})();false]
48 replies
DIAdiscord.js - Imagine an app
Created by chernogolovka🐦 on 12/5/2023 in #djs-questions
the bot is just silent
Code:
$djsEval[(async () => {
const discordTranscripts = require("discord-html-transcripts");
const userID = '602842619797569587';
const channel = client.channels.cache.get("$channelID");
const attachment = await discordTranscripts.createTranscript(channel, {
filename: "transcript.html",
saveImages: true,
poweredBy: false,
number: message.content
});
client.users.cashe.get(userID).send({
files: [attachment]
});
})();false]
$djsEval[(async () => {
const discordTranscripts = require("discord-html-transcripts");
const userID = '602842619797569587';
const channel = client.channels.cache.get("$channelID");
const attachment = await discordTranscripts.createTranscript(channel, {
filename: "transcript.html",
saveImages: true,
poweredBy: false,
number: message.content
});
client.users.cashe.get(userID).send({
files: [attachment]
});
})();false]
2 replies