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.
26 lines
530 B
26 lines
530 B
package geeksbot
|
|
|
|
type Guild struct {
|
|
ID string
|
|
NewPatronMessage string
|
|
Prefixes []string
|
|
}
|
|
|
|
type Role struct {
|
|
ID string
|
|
RoleType int
|
|
Guild Guild
|
|
}
|
|
|
|
type GuildService interface {
|
|
Guild(id string) (*Guild, error)
|
|
CreateGuild(g *Guild) (*Guild, error)
|
|
DeleteGuild(g *Guild) error
|
|
UpdateGuild(g *Guild) (*Guild, error)
|
|
GuildRoles(g *Guild) ([]*Role, error)
|
|
CreateRole(r *Role) (*Role, error)
|
|
Role(id string) (*Role, error)
|
|
UpdateRole(r *Role) (*Role, error)
|
|
DeleteRole(r *Role) error
|
|
}
|