Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features: Max number of messages per file #162

Closed
wants to merge 2 commits into from

Conversation

SunkwiBOT
Copy link

No description provided.

@SkellyBuilds
Copy link

I have a question though, Is this really necessary or needed?

export async function createTranscript<T extends ExportReturnType = ExportReturnType.Attachment>(
channel: TextBasedChannel,
options: CreateTranscriptOptions<T> = {}
): Promise<ObjectType<T>> {
): Promise<ObjectType<T> | ObjectType<T>[]> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't great since now everything returns something | something[] which means all typescript users will need add a as <what they expected> statement.

@ItzDerock
Copy link
Owner

I have a question though, Is this really necessary or needed?

I think this feature might be helpful when trying to break a transcript up into chunks to avoid discord file limit size, though a better approach would probably be maxSizePerFile except this is difficult and practically impossible to efficiently implement.

@SunkwiBOT SunkwiBOT closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants