This commit is contained in:
parent
964be05c48
commit
132bf94332
@ -138,9 +138,11 @@ func removeModRoleCommandFunc(ctx disgoman.Context, args []string) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if _, err = ctx.Session.State.Role(ctx.Guild.ID, id); err != nil {
|
if _, err = ctx.Session.State.Role(ctx.Guild.ID, id); err != nil {
|
||||||
|
if _, err := services.GuildService.Role(id); err != nil {
|
||||||
_, _ = ctx.Send(fmt.Sprintf("%s does not reference a valid role for this guild.", id))
|
_, _ = ctx.Send(fmt.Sprintf("%s does not reference a valid role for this guild.", id))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_, err := services.GuildService.CreateOrUpdateRole(geeksbot.Role{
|
_, err := services.GuildService.CreateOrUpdateRole(geeksbot.Role{
|
||||||
ID: id,
|
ID: id,
|
||||||
RoleType: "normal",
|
RoleType: "normal",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user