Package dev.skywolfxp.transcript
Class TranscriptGenerator
java.lang.Object
dev.skywolfxp.transcript.TranscriptGenerator
Generates HTML transcripts from Discord text channels using a provided
This handles the retrieval of messages from a
Transcript.
This handles the retrieval of messages from a
TextChannel and generates the Transcript
as HTML using the Java Template Engine.-
Constructor Summary
ConstructorsConstructorDescriptionTranscriptGenerator(Transcript transcript) ConstructsTranscriptGeneratorwith providedTranscript. -
Method Summary
Modifier and TypeMethodDescriptioncreateTranscript(net.dv8tion.jda.api.entities.channel.concrete.TextChannel textChannel)
-
Constructor Details
-
TranscriptGenerator
ConstructsTranscriptGeneratorwith providedTranscript.- Parameters:
transcript- TheTranscriptto generate the transcript into.
-
-
Method Details
-
createTranscript
@NotNull public Transcript createTranscript(@NotNull net.dv8tion.jda.api.entities.channel.concrete.TextChannel textChannel) throws IllegalArgumentException - Parameters:
textChannel- TheTextChannelfor which to create the transcript.- Returns:
- The
transcriptpopulated withtextChannel's messages. - Throws:
IllegalArgumentException- If the specifiedtextChannelcontains no messages.
-