You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
464 B
22 lines
464 B
package goff
|
|
|
|
type Role struct {
|
|
ID string
|
|
IsModerator bool
|
|
IsAdmin bool
|
|
SelfAssignable bool
|
|
AutoRole bool
|
|
Guild string
|
|
}
|
|
|
|
type RoleService interface {
|
|
Role(id string) (*Role, error)
|
|
AddRole(r *Role) (*Role, error)
|
|
DeleteRole(r *Role) error
|
|
MakeSelfAssignable(r *Role) error
|
|
RemoveSelfAssignable(r *Role) error
|
|
MakeAutoRole(r *Role) error
|
|
RemoveAutoRole(r *Role) error
|
|
GetAutoRoles(gID string) ([]*Role, error)
|
|
}
|