add moderator role command
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Dustin Pianalto 2021-01-25 22:21:56 -09:00
parent 8256b596ff
commit cdbeac195f

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