Skip to content

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

Draft
Dadadah wants to merge 1 commit intostoatchat:mainfrom
Dadadah:feat/getlimits
Draft

feat: Add the ability to get a user's limits, including current#153
Dadadah wants to merge 1 commit intostoatchat: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.

Waiting on stoatchat/stoatchat#727 to be resolved before putting this review.

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

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
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