add moderator role command

This commit is contained in:
Dustin Pianalto 2021-01-25 22:21:56 -09:00
parent 21a7515797
commit c62f0f2f47

View File

@ -28,7 +28,7 @@ func addModeratorRoleCommandFunc(ctx disgoman.Context, args []string) {
}
roles := append(args, ctx.Message.MentionRoles...)
if len(roles) > 0 {
for _, id := range ctx.Message.MentionRoles {
for _, id := range roles {
_, err := services.GuildService.CreateRole(geeksbot.Role{
ID: id,
RoleType: "moderator",