Users
API models for the users
endpoint.
GetBansResponse
¶
A model response from ravyapi.api.endpoints.users.Users.get_bans
.
Attributes¶
data : dict[str, Any]
The raw data returned from the Ravy API.
trust : Trust
The user's ravyapi.api.models.generic.trust.Trust
trust model.
bans : list[BanEntryResponse]
A list of the user's ravyapi.api.models.generic.ban_entry.BanEntryResponse
ban models.
Source code in ravyapi/api/models/users.py
GetPronounsResponse
¶
A model response from ravyapi.api.endpoints.users.Users.get_pronouns
.
Attributes¶
data : dict[str, Any] The raw data returned from the Ravy API. pronouns : str The user's pronouns.
Source code in ravyapi/api/models/users.py
GetReputationResponse
¶
A model response from ravyapi.api.endpoints.users.Users.get_reputation
.
Attributes¶
data : dict[str, Any]
The raw data returned from the Ravy API.
rep : list[ReputationEntry]
A list of the user's ravyapi.api.models.users.ReputationEntry
reputation models.
trust : Trust
The user's ravyapi.api.models.generic.trust.Trust
trust model.
Source code in ravyapi/api/models/users.py
GetUserResponse
¶
A model response from ravyapi.api.endpoints.users.Users.get_user
.
Attributes¶
data : dict[str, Any]
The raw data returned from the Ravy API.
pronouns : str
The user's pronouns.
trust : Trust
The user's ravyapi.api.models.generic.trust.Trust
trust model.
whitelists : list[WhitelistEntry]
A list of the user's ravyapi.api.models.users.WhitelistEntry
whitelist models.
bans : list[BanEntryResponse]
A list of the user's ravyapi.api.models.generic.ban_entry.BanEntryResponse
ban models.
rep : list[ReputationEntry]
A list of the user's ravyapi.api.models.users.ReputationEntry
reputation models.
sentinel : SentinelEntry
The user's ravyapi.api.models.users.SentinelEntry
sentinel model.
Source code in ravyapi/api/models/users.py
bans: list[BanEntryResponse]
property
¶
A list of the user's ravyapi.api.models.generic.ban_entry.BanEntryResponse
ban models.
data: dict[str, Any]
property
¶
The raw data returned from the Ravy API.
pronouns: str
property
¶
The user's pronouns.
rep: list[ReputationEntry]
property
¶
A list of the user's ravyapi.api.models.users.ReputationEntry
reputation models.
sentinel: SentinelEntry
property
¶
The user's ravyapi.api.models.users.SentinelEntry
sentinel model.
trust: Trust
property
¶
The user's ravyapi.api.models.generic.trust.Trust
trust model.
whitelists: list[WhitelistEntry]
property
¶
A list of the user's ravyapi.api.models.users.WhitelistEntry
whitelist models.
GetWhitelistsResponse
¶
A model response from ravyapi.api.endpoints.users.Users.get_whitelists
.
Attributes¶
data : dict[str, Any]
The raw data returned from the Ravy API.
whitelists : list[WhitelistEntry]
A list of the user's ravyapi.api.models.users.WhitelistEntry
whitelist models.
trust : Trust
The user's ravyapi.api.models.generic.trust.Trust
trust model.
Source code in ravyapi/api/models/users.py
ReputationEntry
¶
A model for a user's reputation entry.
Attributes¶
data : dict[str, Any] The raw data returned from the Ravy API. provider : str Source for the reputation data. score : float Normalized value (0-1) for reputation of the user, 0.5 is default. upvotes : int | None Amount of upvotes this user has received, optional. downvotes : int | None Amount of downvotes this user has received, optional.
Source code in ravyapi/api/models/users.py
data: dict[str, Any]
property
¶
The raw data returned from the Ravy API.
downvotes: int | None
property
¶
Amount of downvotes this user has received, optional.
provider: str
property
¶
Source for the reputation data.
score: float
property
¶
Normalized value (0-1) for reputation of the user, 0.5 is default.
upvotes: int | None
property
¶
Amount of upvotes this user has received, optional.
SentinelEntry
¶
A model for a user's sentinel entry.
Attributes¶
data : dict[str, Any] The raw data returned from the Ravy API. verified : bool Whether this user has linked their account to sentinel. internal_id : str Internal ID for debug purposes.
Source code in ravyapi/api/models/users.py
WhitelistEntry
¶
A model for a user's whitelist entry.
Attributes¶
data : dict[str, Any] The raw data returned from the Ravy API. provider : str Source for where the user is whitelisted. reason : str Why the user is whitelisted, usually STAFF.