createTranscript
Will fetch (by default, all) the messages from the provided channel and can return either a Buffer
, string
, or AttachmentBuilder
Example
Parameters
channel: TextBasedChannel
channel: TextBasedChannel
Defined in discord.js as TextChannel | NewsChannel | ThreadChannel | VoiceChannel
``This is the channel Discord HTML Transcripts will fetch messages from.
options: CreateTranscriptOptions
options: CreateTranscriptOptions
The same options as generateFromMessages but adds the limit
option which lets you limit set the number of messages to fetch.
options.limit: number
options.limit: number
The number of messages to fetch.
options.filter: (message: Message<boolean>) => boolean
options.filter: (message: Message<boolean>) => boolean
A function that will be called for each message to determine if it should be included in the transcript. If false, the message will not be included.
Last updated