chore: lint

This commit is contained in:
spiral 2022-04-20 10:47:15 -04:00
parent aa896de3af
commit 1e86c2d6c4
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E
2 changed files with 24 additions and 22 deletions

View File

@ -277,7 +277,8 @@ internal static class CacheProtoExt
c.Name = channel.Name;
if (channel.PermissionOverwrites != null)
foreach (var overwrite in channel.PermissionOverwrites)
c.PermissionOverwrites.Add(new Overwrite() {
c.PermissionOverwrites.Add(new Overwrite()
{
Id = overwrite.Id,
Type = (int)overwrite.Type,
Allow = (ulong)overwrite.Allow,

View File

@ -44,7 +44,8 @@ public class BotModule: Module
}).AsSelf().SingleInstance();
builder.RegisterType<Cluster>().AsSelf().SingleInstance();
builder.RegisterType<RedisGatewayService>().AsSelf().SingleInstance();
builder.Register<IDiscordCache>(c => {
builder.Register<IDiscordCache>(c =>
{
var botConfig = c.Resolve<BotConfig>();
if (botConfig.UseRedisCache)