Documentation ¶
Overview ¶
Package group provides functions to interact with Roblox groups.
Index ¶
- type Group
- func (c Group) ChangeRank(UserId int, Change int) (Role, Role, error)
- func (c Group) Demote(UserID int) (Role, Role, error)
- func (c Group) Exile(UserID int) error
- func (c Group) GetGroupPosts(limit ...int) (<-chan []Post, <-chan error, error)
- func (c Group) GetGroupRoles() ([]Role, error)
- func (c Group) GetJoinRequests(limit ...int) (<-chan []JoinRequest, <-chan error, error)
- func (c Group) GetRoleInGroup(id int) (Role, error)
- func (c Group) GetShout() (*Shout, error)
- func (c Group) PostShout(shout string) error
- func (c Group) Promote(UserID int) (Role, Role, error)
- func (c Group) SetRank(UserID, Id int) error
- type JoinRequest
- type Post
- type Requester
- type Role
- type Shout
- type UserGroupRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Description string `json:"description"` Id int `json:"id"` IsBuildersClubOnly bool `json:"isBuildersClubOnly"` MemberCount int `json:"memberCount"` Name string `json:"name"` PublicEntryAllowed bool `json:"publicEntryAllowed"` Shout *Shout `json:"shout"` Owner *user.User `json:"owner"` BotAccount *account.Account `json:"-"` // Don't encode account }
The Group struct provides information about a Roblox group.
func (Group) GetGroupPosts ¶
func (Group) GetGroupRoles ¶
func (Group) GetJoinRequests ¶
func (c Group) GetJoinRequests(limit ...int) (<-chan []JoinRequest, <-chan error, error)
type JoinRequest ¶
type JoinRequest struct { Group *Group Created time.Time `json:"created"` Requester Requester `json:"requester"` }
JoinRequest represents a user who is pending to join a group
func (JoinRequest) Accept ¶
func (r JoinRequest) Accept() error
func (JoinRequest) Decline ¶
func (r JoinRequest) Decline() error
type Post ¶
type Post struct { Id int `json:"id"` Poster interiorPost `json:"poster"` Body string `json:"body"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Group *Group }
Post is the decoded value of a Post on a group wall
type Requester ¶
type Requester struct { Username string `json:"username"` DisplayName string `json:"displayName"` UserID int `json:"userId"` }
Requester represents a subsection of a JoinRequest
type Role ¶
type Role struct { Id int `json:"id"` Name string `json:"name"` Rank int `json:"rank"` MemberCount int `json:"memberCount"` }
Role represents a Group Role
type Shout ¶
type Shout struct { Content string `json:"body"` Created string `json:"created"` Updated string `json:"updated"` Poster *user.User }
The Shout struct provides information about a group shout.
type UserGroupRelation ¶
UserGroupRelation represents a user's Role in a Group
Click to show internal directories.
Click to hide internal directories.