classes
Friend
¶
Represents a friend of a Luduvo user.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
int
|
The friend's user ID. |
username |
str
|
The friend's username. |
Source code in luduvo/utilities/classes.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
PartialUser
¶
Represents a partial Luduvo user, containing only basic information.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
int
|
The user's ID. |
username |
str
|
The user's username. |
display_name |
str
|
The user's display name. |
created_at |
datetime
|
The datetime the user joined Luduvo. |
Source code in luduvo/utilities/classes.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
User
¶
Represents a Luduvo user.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
int
|
The user's ID. |
username |
str
|
The user's username. |
created_at |
datetime
|
The datetime the user joined Luduvo. |
display_name |
str
|
The user's display name. |
status |
str
|
The user's status message. |
bio |
str
|
The user's biography. |
avatar |
dict
|
A dictionary containing information about the user's avatar. |
equipped_items |
list
|
A list of items currently equipped by the user. |
badges |
list
|
A list of badges owned by the user. |
friend_count |
int
|
The number of friends the user has. |
place_count |
int
|
The number of places owned by the user. |
item_count |
int
|
The number of items owned by the user. |
last_active |
|
|
allow_joins |
bool
|
Whether the user allows others to join their games. |
Source code in luduvo/utilities/classes.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
get_friends(limit=50)
async
¶
Gets the user's friends.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
int
|
The maximum number of friends to retrieve. Defaults to 50. |
50
|
Returns:
| Type | Description |
|---|---|
list[Friend]
|
list[Friend]: A list of the user's friends. |
Source code in luduvo/utilities/classes.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |