add moderator role command

development v0.0.58
DustyP 5 years ago
parent 8256b596ff
commit cdbeac195f

@ -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",

Loading…
Cancel
Save