#The bot is silent and does not send me a transcript

1 messages · Page 1 of 1 (latest)

broken otter

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]```