Add Auto Role Feature

This commit is contained in:
Dustin Pianalto
2021-06-22 01:29:38 -08:00
parent 8c9a64b060
commit cfce631155
7 changed files with 282 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
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)
}