mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-12 22:35:42 +00:00
refactor!: extract interface for User
This commit is contained in:
parent
a169346f53
commit
3841ad13aa
@ -54,7 +54,7 @@ public sealed class RequireUserNameAttribute : PreExecutionCheckAttribute
|
||||
throw new ArgumentNullException(nameof(context));
|
||||
}
|
||||
|
||||
User user = await context.Avatar.GetUserAsync().ConfigureAwait(false);
|
||||
IUser user = await context.Avatar.GetUserAsync().ConfigureAwait(false);
|
||||
return Names.Contains(user.Name);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user