fix: guild scheduled events update (#1976)
This commit is contained in:
@@ -2640,7 +2640,7 @@ namespace Discord.WebSocket
|
||||
return;
|
||||
}
|
||||
|
||||
var before = guild.GetEvent(data.Id);
|
||||
var before = guild.GetEvent(data.Id)?.Clone();
|
||||
|
||||
var beforeCacheable = new Cacheable<SocketGuildEvent, ulong>(before, data.Id, before != null, () => Task.FromResult((SocketGuildEvent)null));
|
||||
|
||||
|
||||
@@ -196,6 +196,8 @@ namespace Discord.WebSocket
|
||||
public IAsyncEnumerable<IReadOnlyCollection<RestUser>> GetUsersAsync(ulong fromUserId, Direction dir, int limit = DiscordConfig.MaxGuildEventUsersPerBatch, RequestOptions options = null)
|
||||
=> GuildHelper.GetEventUsersAsync(Discord, this, fromUserId, dir, limit, options);
|
||||
|
||||
internal SocketGuildEvent Clone() => MemberwiseClone() as SocketGuildEvent;
|
||||
|
||||
#region IGuildScheduledEvent
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user