mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
21 lines
No EOL
410 B
C#
21 lines
No EOL
410 B
C#
namespace PluralKit.Core
|
|
{
|
|
public enum PrivacyLevel
|
|
{
|
|
Public = 1,
|
|
Private = 2
|
|
}
|
|
|
|
public static class PrivacyExt
|
|
{
|
|
public static bool CanAccess(this PrivacyLevel level, LookupContext ctx) =>
|
|
level == PrivacyLevel.Public || ctx == LookupContext.ByOwner;
|
|
}
|
|
|
|
public enum LookupContext
|
|
{
|
|
ByOwner,
|
|
ByNonOwner,
|
|
API
|
|
}
|
|
} |