1
0
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:
Oliver Booth 2024-03-17 13:01:39 +00:00
parent a169346f53
commit 3841ad13aa
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -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);
}
}