Skip to content

Make Cacheable constructors public#3177

Merged
Misha-133 merged 1 commit into
discord-net:devfrom
GreemDev:dev
Aug 30, 2025
Merged

Make Cacheable constructors public#3177
Misha-133 merged 1 commit into
discord-net:devfrom
GreemDev:dev

Conversation

@GreemDev

Copy link
Copy Markdown
Contributor

Description

This PR simply makes the constructors for the 2 different Cacheable structs public.

I want to use this mechanism in my bot's code without duplicating the class in my own project but obviously I can if this functionality is not desired.

I did not add an XML doc, however I can add one if that is desired.

Changes

internal constructor for Cacheable<TCachedEntity, TDownloadableEntity, TRelationship, TId> made public
internal constructor for Cacheable<TEntity, TId> made public

Related Issues

N/A

@GreemDev GreemDev closed this Aug 30, 2025

@Misha-133 Misha-133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see a reason for it to be internal.

@Misha-133 Misha-133 reopened this Aug 30, 2025
@Misha-133 Misha-133 merged commit e61eb51 into discord-net:dev Aug 30, 2025
3 checks passed
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.

2 participants