Skip to content

feat(users): Support user ID and username for GetUserStatus.

This change improves the GetUserStatus function to accept either a numeric user ID or a username string when retrieving a user's status.

Previously, the function only accepted a user ID as an integer despite the underlying API accepting either a numeric user ID or a username. The update exposes this flexibility to developers, allowing them to look up a user's status using either format.

The code also adds comprehensive tests to verify this new functionality works correctly with different input types, and includes a sample JSON response showing what a user status contains (emoji, message, availability status).

The implementation properly handles usernames with "@" prefixes by automatically removing them before making the API request.

Merge request reports

Loading