don't track EFCore objects that don't need to be updated
This commit is contained in:
parent
d42e73699b
commit
f7f88ff98f
24 changed files with 50 additions and 33 deletions
|
|
@ -38,7 +38,7 @@ public class GuildBanAddResponder(
|
|||
|
||||
public async Task<Result> RespondAsync(IGuildBanAdd evt, CancellationToken ct = default)
|
||||
{
|
||||
var guildConfig = await db.GetGuildAsync(evt.GuildID, ct);
|
||||
var guildConfig = await db.GetGuildAsync(evt.GuildID, true, ct);
|
||||
|
||||
// Delay 2 seconds for the audit log
|
||||
await Task.Delay(2000, ct);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue