From 38bfe52f2b5ca53df3de86a3cf018aad0dd9ece1 Mon Sep 17 00:00:00 2001 From: RogueException Date: Fri, 24 Jun 2016 18:10:09 -0300 Subject: [PATCH] Renamed GuildDownloadedMembers -> GuildMembersDownloaded --- src/Discord.Net/DiscordSocketClient.Events.cs | 8 ++++---- src/Discord.Net/DiscordSocketClient.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Discord.Net/DiscordSocketClient.Events.cs b/src/Discord.Net/DiscordSocketClient.Events.cs index 2a16f7b65..b4d4db47d 100644 --- a/src/Discord.Net/DiscordSocketClient.Events.cs +++ b/src/Discord.Net/DiscordSocketClient.Events.cs @@ -116,12 +116,12 @@ namespace Discord remove { _guildUnavailableEvent.Remove(value); } } private AsyncEvent> _guildUnavailableEvent = new AsyncEvent>(); - public event Func GuildDownloadedMembers + public event Func GuildMembersDownloaded { - add { _guildDownloadedMembersEvent.Add(value); } - remove { _guildDownloadedMembersEvent.Remove(value); } + add { _guildMembersDownloadedEvent.Add(value); } + remove { _guildMembersDownloadedEvent.Remove(value); } } - private AsyncEvent> _guildDownloadedMembersEvent = new AsyncEvent>(); + private AsyncEvent> _guildMembersDownloadedEvent = new AsyncEvent>(); public event Func GuildUpdated { add { _guildUpdatedEvent.Add(value); } diff --git a/src/Discord.Net/DiscordSocketClient.cs b/src/Discord.Net/DiscordSocketClient.cs index 272ea5444..545ebcf20 100644 --- a/src/Discord.Net/DiscordSocketClient.cs +++ b/src/Discord.Net/DiscordSocketClient.cs @@ -765,7 +765,7 @@ namespace Discord if (guild.DownloadedMemberCount >= guild.MemberCount) //Finished downloading for there { guild.CompleteDownloadMembers(); - await _guildDownloadedMembersEvent.InvokeAsync(guild).ConfigureAwait(false); + await _guildMembersDownloadedEvent.InvokeAsync(guild).ConfigureAwait(false); } } else