Browse Source

Added DataStore.DMChannels property

pull/97/head
RogueException 9 years ago
parent
commit
732d30e598
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Data/DefaultDataStore.cs
  2. +1
    -0
      src/Discord.Net/Data/IDataStore.cs

+ 1
- 1
src/Discord.Net/Data/DefaultDataStore.cs View File

@@ -2,7 +2,6 @@
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;


namespace Discord.Data namespace Discord.Data
{ {
@@ -19,6 +18,7 @@ namespace Discord.Data
private readonly ConcurrentDictionary<ulong, CachedPublicUser> _users; private readonly ConcurrentDictionary<ulong, CachedPublicUser> _users;


internal override IReadOnlyCollection<ICachedChannel> Channels => _channels.ToReadOnlyCollection(); internal override IReadOnlyCollection<ICachedChannel> Channels => _channels.ToReadOnlyCollection();
internal override IReadOnlyCollection<CachedDMChannel> DMChannels => _dmChannels.ToReadOnlyCollection();
internal override IReadOnlyCollection<CachedGuild> Guilds => _guilds.ToReadOnlyCollection(); internal override IReadOnlyCollection<CachedGuild> Guilds => _guilds.ToReadOnlyCollection();
internal override IReadOnlyCollection<CachedPublicUser> Users => _users.ToReadOnlyCollection(); internal override IReadOnlyCollection<CachedPublicUser> Users => _users.ToReadOnlyCollection();




+ 1
- 0
src/Discord.Net/Data/IDataStore.cs View File

@@ -6,6 +6,7 @@ namespace Discord.Data
public abstract class DataStore public abstract class DataStore
{ {
internal abstract IReadOnlyCollection<ICachedChannel> Channels { get; } internal abstract IReadOnlyCollection<ICachedChannel> Channels { get; }
internal abstract IReadOnlyCollection<CachedDMChannel> DMChannels { get; }
internal abstract IReadOnlyCollection<CachedGuild> Guilds { get; } internal abstract IReadOnlyCollection<CachedGuild> Guilds { get; }
internal abstract IReadOnlyCollection<CachedPublicUser> Users { get; } internal abstract IReadOnlyCollection<CachedPublicUser> Users { get; }




Loading…
Cancel
Save