Browse Source

Remove debug code and add param documentation

pull/1767/head
Daniel Baynton 4 years ago
parent
commit
ef1f52ab25
2 changed files with 1 additions and 6 deletions
  1. +0
    -6
      src/Discord.Net.WebSocket/DiscordSocketClient.cs
  2. +1
    -0
      src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs

+ 0
- 6
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -46,12 +46,6 @@ namespace Discord.WebSocket
private bool _guildSubscriptions;
private GatewayIntents? _gatewayIntents;

// temporary for debugging
public string GetDebugOutput()
{
return $"Guilds: {State.Guilds.Count}, Channels: {State.Channels.Count}, DM Channels: {State.DMChannels.Count}, Private Channels: {State.PrivateChannels.Count}, Group Channels: {State.GroupChannels.Count}, Global Users: {State.Users.Count}, Guild Users: {Guilds.Sum(x => x.Users.Count)}";
}

/// <summary>
/// Provides access to a REST-only client with a shared state from this client.
/// </summary>


+ 1
- 0
src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -855,6 +855,7 @@ namespace Discord.WebSocket
/// <summary>
/// Clears this guild's user cache.
/// </summary>
/// <param name="predicate">The users to clear.</param>
public void ClearUserCache(Func<SocketGuildUser, bool> predicate) => PurgeGuildUserCache(predicate);
internal SocketGuildUser AddOrUpdateUser(UserModel model)
{


Loading…
Cancel
Save