From 2fe9de279dbae08efb0915fe09619831d5877fbd Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Tue, 22 Jun 2021 02:15:42 -0800 Subject: [PATCH] Add Auto Role Feature --- internal/postgres/roles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/postgres/roles.go b/internal/postgres/roles.go index ed51335..cf42a6f 100644 --- a/internal/postgres/roles.go +++ b/internal/postgres/roles.go @@ -63,7 +63,7 @@ func (s *RoleService) RemoveAutoRole(r *goff.Role) error { func (s *RoleService) GetAutoRoles(gID string) ([]*goff.Role, error) { var roles []*goff.Role - queryString := `SELECT id FROM roles WHERE guild_id = $1` + queryString := `SELECT id FROM roles WHERE guild_id = $1 AND auto_role = true` rows, err := s.DB.Query(queryString, gID) if err != nil { return nil, err