Switched ids to use int64 rather than strings

This commit is contained in:
RogueException
2015-11-18 20:33:49 -04:00
parent 07c0b5c418
commit 5be13b91ae
49 changed files with 747 additions and 458 deletions

View File

@@ -47,9 +47,9 @@ namespace Discord.Modules
private readonly string _name, _id;
private readonly FilterType _filterType;
private readonly bool _useServerWhitelist, _useChannelWhitelist, _allowAll, _allowPrivate;
private readonly ConcurrentDictionary<string, Server> _enabledServers;
private readonly ConcurrentDictionary<string, Channel> _enabledChannels;
private readonly ConcurrentDictionary<string, int> _indirectServers;
private readonly ConcurrentDictionary<long, Server> _enabledServers;
private readonly ConcurrentDictionary<long, Channel> _enabledChannels;
private readonly ConcurrentDictionary<long, int> _indirectServers;
public DiscordClient Client => _client;
public string Name => _name;
@@ -70,9 +70,9 @@ namespace Discord.Modules
_useChannelWhitelist = filterType.HasFlag(FilterType.ChannelWhitelist);
_allowPrivate = filterType.HasFlag(FilterType.AllowPrivate);
_enabledServers = new ConcurrentDictionary<string, Server>();
_enabledChannels = new ConcurrentDictionary<string, Channel>();
_indirectServers = new ConcurrentDictionary<string, int>();
_enabledServers = new ConcurrentDictionary<long, Server>();
_enabledChannels = new ConcurrentDictionary<long, Channel>();
_indirectServers = new ConcurrentDictionary<long, int>();
if (_allowAll || _useServerWhitelist) //Server-only events
{