fix: correctly handle missing role cache in message embed

This commit is contained in:
spiral
2021-11-02 22:36:14 -04:00
parent 08c5b78cc2
commit 21e3e61db0
2 changed files with 10 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ namespace Myriad.Extensions
public static Role GetRole(this IDiscordCache cache, ulong roleId)
{
if (!cache.TryGetRole(roleId, out var role))
throw new KeyNotFoundException($"User {roleId} not found in cache");
throw new KeyNotFoundException($"Role {roleId} not found in cache");
return role;
}