Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleDesc ¶
type RoleDesc struct {
Role string `toml:"role" json:"role"`
Desc string `toml:"desc" json:"desc"`
}
todo: make AllowedRoles a json representation https://github.com/go-gorm/datatypes RoleDesc is a role tag and description
type Server ¶
type Server struct {
//Server ID(GuildID under Discord API)
ID string `gorm: primary_key`
Name string
RoleChannel string
AllowedRoles []byte
ElevatedRoles []byte
RouletteNames []byte
}
Server represents server info pertinent to Rinako on Discord
func (*Server) ToInfo ¶
func (s *Server) ToInfo() ServerInfo
Click to show internal directories.
Click to hide internal directories.