35 lines
		
	
	
		
			887 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			887 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package revoltgo
 | |
| 
 | |
| // User struct.
 | |
| type User struct {
 | |
| 	Client *Client
 | |
| 
 | |
| 	Id             string           `json:"_id"`
 | |
| 	Username       string           `json:"username"`
 | |
| 	Avatar         *Attachment      `json:"avatar"`
 | |
| 	Relations      []*UserRelations `json:"relations"`
 | |
| 	Badges         int              `json:"badges"`
 | |
| 	Status         *UserStatus      `json:"status"`
 | |
| 	Relationship   string           `json:"relationship"`
 | |
| 	IsOnline       bool             `json:"online"`
 | |
| 	Flags          int              `json:"flags"`
 | |
| 	BotInformation *BotInformation  `json:"bot"`
 | |
| }
 | |
| 
 | |
| // User relations struct.
 | |
| type UserRelations struct {
 | |
| 	Id     string `json:"_id"`
 | |
| 	Status string `json:"status"`
 | |
| }
 | |
| 
 | |
| // User status struct.
 | |
| type UserStatus struct {
 | |
| 	Text     string `json:"text"`
 | |
| 	Presence string `json:"presence"`
 | |
| }
 | |
| 
 | |
| // Bot information struct.
 | |
| type BotInformation struct {
 | |
| 	Owner string `json:"owner"`
 | |
| }
 |