mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
refactor: don't use 'out' in IDiscordCache methods
this change is required for async cache (.NET doesn't support async ref/out params)
This commit is contained in:
parent
3ba46ff456
commit
0efaab6d95
11 changed files with 48 additions and 52 deletions
|
|
@ -50,7 +50,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
// Sometimes we get events from users that aren't in the user cache
|
||||
// We just ignore all of those for now, should be quite rare...
|
||||
if (!await _cache.TryGetUser(evt.UserId, out var user))
|
||||
if (!(await _cache.TryGetUser(evt.UserId) is User user))
|
||||
return;
|
||||
|
||||
// ignore any reactions added by *us*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue