Skip to content

feat: Add the ability to get a user's limits, including current#153

Open
Dadadah wants to merge 1 commit into
stoatchat:mainfrom
Dadadah:feat/getlimits
Open

feat: Add the ability to get a user's limits, including current#153
Dadadah wants to merge 1 commit into
stoatchat:mainfrom
Dadadah:feat/getlimits

Conversation

@Dadadah
Copy link
Copy Markdown
Member

@Dadadah Dadadah commented Apr 24, 2026

This PR adds the ability to fetch a user's limits. It adds getLimits to the user object, which returns either the new user limits or the default limits based on the age of the user. This can later be expanded to include premium user types easily. The getLimits function will return undefined if the client is unconfigured. This PR also adds a getLimits function to the client that shortcuts calling getLimits on the currently logged in user.

Generative AI was not used in the writing of this PR.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
@Dadadah Dadadah marked this pull request as ready for review May 17, 2026 21:20
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.

1 participant