Class TranscriptGenerator

java.lang.Object
dev.skywolfxp.transcript.TranscriptGenerator

public final class TranscriptGenerator extends Object
Generates HTML transcripts from Discord text channels using a provided Transcript.

This handles the retrieval of messages from a TextChannel and generates the Transcript as HTML using the Java Template Engine.
  • Constructor Details

  • Method Details

    • createTranscript

      @NotNull public Transcript createTranscript(@NotNull net.dv8tion.jda.api.entities.channel.concrete.TextChannel textChannel) throws IllegalArgumentException
      Parameters:
      textChannel - The TextChannel for which to create the transcript.
      Returns:
      The transcript populated with textChannel's messages.
      Throws:
      IllegalArgumentException - If the specified textChannel contains no messages.