Browse Source

Renamed GuildDownloadedMembers -> GuildMembersDownloaded

tags/1.0-rc
RogueException 9 years ago
parent
commit
38bfe52f2b
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      src/Discord.Net/DiscordSocketClient.Events.cs
  2. +1
    -1
      src/Discord.Net/DiscordSocketClient.cs

+ 4
- 4
src/Discord.Net/DiscordSocketClient.Events.cs View File

@@ -116,12 +116,12 @@ namespace Discord
remove { _guildUnavailableEvent.Remove(value); }
}
private AsyncEvent<Func<IGuild, Task>> _guildUnavailableEvent = new AsyncEvent<Func<IGuild, Task>>();
public event Func<IGuild, Task> GuildDownloadedMembers
public event Func<IGuild, Task> GuildMembersDownloaded
{
add { _guildDownloadedMembersEvent.Add(value); }
remove { _guildDownloadedMembersEvent.Remove(value); }
add { _guildMembersDownloadedEvent.Add(value); }
remove { _guildMembersDownloadedEvent.Remove(value); }
}
private AsyncEvent<Func<IGuild, Task>> _guildDownloadedMembersEvent = new AsyncEvent<Func<IGuild, Task>>();
private AsyncEvent<Func<IGuild, Task>> _guildMembersDownloadedEvent = new AsyncEvent<Func<IGuild, Task>>();
public event Func<IGuild, IGuild, Task> GuildUpdated
{
add { _guildUpdatedEvent.Add(value); }


+ 1
- 1
src/Discord.Net/DiscordSocketClient.cs View File

@@ -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


Loading…
Cancel
Save