diff --git a/src/NadekoBot/Services/Impl/RedisImagesCache.cs b/src/NadekoBot/Services/Impl/RedisImagesCache.cs index 7e6ce7586..66fd56cdd 100644 --- a/src/NadekoBot/Services/Impl/RedisImagesCache.cs +++ b/src/NadekoBot/Services/Impl/RedisImagesCache.cs @@ -59,6 +59,11 @@ public sealed class ImageCache : IImageCache, INService GetImageKey(url), async () => { + if (url.IsFile) + { + return await File.ReadAllBytesAsync(url.LocalPath); + } + using var http = _httpFactory.CreateClient(); var bytes = await http.GetByteArrayAsync(url); return bytes;