Adding username history to user repo

This commit is contained in:
Runebaas 2017-10-26 23:31:51 +02:00
parent 9efac29956
commit 14dfbca389
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
2 changed files with 75 additions and 41 deletions

View file

@ -107,7 +107,7 @@ namespace Geekbot.net.Commands
await ReplyAsync("Woah, i don't think you want to add that role to self service as it contains some dangerous permissions");
return;
}
_redis.HashSet($"{Context.Guild.Id}:RoleWhitelist", new HashEntry[] { new HashEntry(roleName, role.Id.ToString()) });
_redis.HashSet($"{Context.Guild.Id}:RoleWhitelist", new HashEntry[] { new HashEntry(roleName.ToLower(), role.Id.ToString()) });
await ReplyAsync($"Added {role.Name} to the whitelist");
}
catch (Exception e)