diff --git a/src/Discord.Net/Discord.Net.csproj b/src/Discord.Net/Discord.Net.csproj index f5e9372e3..172157cbc 100644 --- a/src/Discord.Net/Discord.Net.csproj +++ b/src/Discord.Net/Discord.Net.csproj @@ -207,7 +207,7 @@ - + diff --git a/src/Discord.Net/WebSocket/Entities/Channels/GuildChannel.cs b/src/Discord.Net/WebSocket/Entities/Channels/GuildChannel.cs index beb11fc64..afd0b17d9 100644 --- a/src/Discord.Net/WebSocket/Entities/Channels/GuildChannel.cs +++ b/src/Discord.Net/WebSocket/Entities/Channels/GuildChannel.cs @@ -11,7 +11,7 @@ namespace Discord.WebSocket public abstract class GuildChannel : IGuildChannel { private ConcurrentDictionary _overwrites; - internal ChannelPermissionsCache _permissions; + internal PermissionsCache _permissions; /// public ulong Id { get; } diff --git a/src/Discord.Net/WebSocket/ChannelPermissionsCache.cs b/src/Discord.Net/WebSocket/PermissionsCache.cs similarity index 92% rename from src/Discord.Net/WebSocket/ChannelPermissionsCache.cs rename to src/Discord.Net/WebSocket/PermissionsCache.cs index fcf5ff6a8..30f3a0b6e 100644 --- a/src/Discord.Net/WebSocket/ChannelPermissionsCache.cs +++ b/src/Discord.Net/WebSocket/PermissionsCache.cs @@ -1,5 +1,4 @@ -using System.Collections; -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; @@ -17,14 +16,14 @@ namespace Discord.WebSocket } } - internal class ChannelPermissionsCache + internal class PermissionsCache { private readonly GuildChannel _channel; private readonly ConcurrentDictionary _users; public IEnumerable Members => _users.Select(x => x.Value); - public ChannelPermissionsCache(GuildChannel channel) + public PermissionsCache(GuildChannel channel) { _channel = channel; _users = new ConcurrentDictionary(1, (int)(_channel.Guild.UserCount * 1.05));