public LocalOverwrite(Snowflake targetId, OverwriteTargetType targetType, OverwritePermissions permissions) { TargetId = targetId; TargetType = targetType; Permissions = permissions; }
public LocalOverwrite(IRole target, OverwritePermissions permissions) : this(target?.Id ?? throw new ArgumentNullException(nameof(target)), OverwriteTargetType.Role, permissions) { }
public static LocalOverwrite Member(Snowflake memberId, OverwritePermissions permissions) => new(memberId, OverwriteTargetType.Member, permissions);