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
1 changed files with 1 additions and 1 deletions

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