Organization
Org Model
Organization
¤
Bases: BaseModel
Represents an organization
Attributes:
| Name | Type | Description |
|---|---|---|
id |
int
|
Organization ID |
name |
str
|
Organization name |
description |
Optional[str]
|
Organization description |
url |
str
|
Organization URL |
logo_url |
Optional[str]
|
Organization logo URL |
social_link_urls |
List[str]
|
List of social link URLs |
members |
List[OrganizationMember]
|
List of OrganizationMember |
Source code in sendou/models/organization.py
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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
api_route(**kwargs)
staticmethod
¤
Get the API route for organizations
Kwargs
org_id: Organization ID
Returns:
| Type | Description |
|---|---|
str
|
API route |
Source code in sendou/models/organization.py
114 115 116 117 118 119 120 121 122 123 124 125 126 | |
OrganizationMember
¤
Bases: BaseModel
Represents a member of the organization
Attributes:
| Name | Type | Description |
|---|---|---|
user_id |
int
|
User ID |
name |
str
|
User name |
discord_id |
str
|
Discord ID |
role |
OrganizationRole
|
OrganizationRole |
role_display_name |
Optional[str]
|
Display name of the role |
Source code in sendou/models/organization.py
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 | |
get_user()
async
¤
Get the user object for this member
Returns:
| Type | Description |
|---|---|
User
|
User object |
Source code in sendou/models/organization.py
59 60 61 62 63 64 65 66 67 68 | |
OrganizationRole
¤
Bases: Enum
Represents a role of member in the organization
Source code in sendou/models/organization.py
13 14 15 16 17 18 19 20 | |