chore: format with csharpier
This commit is contained in:
parent
2f516dcb73
commit
4f54077c68
59 changed files with 2000 additions and 942 deletions
|
|
@ -8,13 +8,14 @@ public class InMemoryInviteCache : IInviteCache
|
|||
{
|
||||
private readonly ConcurrentDictionary<Snowflake, IEnumerable<IInvite>> _invites = new();
|
||||
|
||||
public Task<IEnumerable<IInvite>> TryGetAsync(Snowflake guildId) => _invites.TryGetValue(guildId, out var invites)
|
||||
? Task.FromResult(invites)
|
||||
: Task.FromResult<IEnumerable<IInvite>>([]);
|
||||
public Task<IEnumerable<IInvite>> TryGetAsync(Snowflake guildId) =>
|
||||
_invites.TryGetValue(guildId, out var invites)
|
||||
? Task.FromResult(invites)
|
||||
: Task.FromResult<IEnumerable<IInvite>>([]);
|
||||
|
||||
public Task SetAsync(Snowflake guildId, IEnumerable<IInvite> invites)
|
||||
{
|
||||
_invites[guildId] = invites;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue